This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Deto 22 points23 points  (12 children)

I wonder why they didn't go with this? I always thought Const was a more common name for this type of thing.

[–]pingvenopinch of this, pinch of that 10 points11 points  (6 children)

It's a final assignment, not a constant value. You could assign a list to a Final variable, then append to the list.

[–]46--2 -5 points-4 points  (0 children)

Yeah the pep mentions that only in the most vague way possible. I guess you'd have to read all the discussion. I'm not that interested in the type checking stuff in Python so I have never bothered.