[Python-Dev] replacing 'global'
Guido van Rossum
guido at python.org
Sat Oct 25 18:20:13 EDT 2003
More information about the Python-Dev mailing list
Sat Oct 25 18:20:13 EDT 2003
- Previous message: [Python-Dev] replacing 'global'
- Next message: [Python-Dev] replacing 'global'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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/)
- Previous message: [Python-Dev] replacing 'global'
- Next message: [Python-Dev] replacing 'global'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list