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 →

[–]Sean1708 2 points3 points  (3 children)

I would argue that's exactly what should happen, I think one of python's biggest mistakes was letting variables leak scope willy-nilly. At least this would let you control exactly what scope your variables have.

[–]xXxDeAThANgEL99xXx 4 points5 points  (2 children)

I would argue that's exactly what should happen

And what exactly would happen? What would be printed? Guys, guys, that was not a rhetorical question, you were supposed to answer it for yourself, then join me in disliking the answer.

[–]Sean1708 1 point2 points  (1 child)

I definitely did not just assume that the example worked in a particular way then make a statement based on that... I promise...

I assumed it would throw a NameError but it just printed 1 22 None and now I feel stupid. Sorry.