Tim> Likewise, the following should be illegal: Tim> def f(): Tim> x = 12 Tim> y = 1 Tim> def g(): Tim> global y in f Tim> y = 12 Tim> g() Tim> print locals() Tim> because the global statement occurs after a local binding of the Tim> name. You meant def f(): x = 12 y = 1 def g(): y = 12 global y in f g() print locals() right? Skip
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4