News for hackers. Stuff that matters.
Re:John Carmack on Mutable Variables by SAI_Peregrinus on Monday November 03, 2025 @12:07PM (#45801410)
Python doesn't have constants at the language level. You can create classes without setter properties, only getter properties, to have constant objects. This is rare, usually people just write the name in SCREAMING_SNAKE_CASE to document it's supposed to be a constant but Python will still allow mutating it.

There are no comments on this comment yet.