> One thing that I've always wondered about, why can't one do: > > def reset_foo(): > global foo = [] # declare as global and do assignment Nothing deep -- it just never occurred to me. I was mimicking ABC's "SHARE foo", which doesn't have this because its syntax for assignment is the more verbose "PUT value IN variable". I don't think it'll entice Alex though. :-) --Guido van Rossum (home page: http://www.python.org/~guido/)
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