30 May
2020
30 May
'20
4:41 a.m.
On 30/05/20 2:52 am, Dominik Vilsmeier wrote:
Indeed locals are special, but why was it designed this way? Why not resolve such an unbound local name in the enclosing scopes?
From experience with other languages I can attest that "sometimes local, sometimes global depending on what gets executed first" is a source of bugs. I like that Python always makes up its mind about whether a given name is local or not. -- Greg