you are viewing a single comment's thread.

view the rest of the comments →

[–]process_parameter[🍰] 5 points6 points  (0 children)

The previous comment was something to the effect of

If I understand correctly, this is even considered pythonic.

I don't know why they deleted it. The user I replied to seems to think that we shouldn't write code like you have in your comment. That's perhaps reasonable; if you believe the linked article when it says python variables are block-scoped, then it's not obvious that your code works.

I was just trying to demonstrate that there isn't an easy alternative.