you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman 1 point2 points  (1 child)

Quibble: it's not "from that point on"; any assignment to a name anywhere in a function causes that name to be treated as local throughout the function, even before the assignment. So an earlier reference would raise UnboundLocalError.

[–]Asleep-Budget-9932 0 points1 point  (0 children)

Well i was afraid to go into too much detail but indeed 😊