[Python-Dev] replacing 'global'
Nick Coghlan
ncoghlan at iinet.net.au
Mon Oct 27 03:31:32 EST 2003
More information about the Python-Dev mailing list
Mon Oct 27 03:31:32 EST 2003
- Previous message: [Python-Dev] replacing 'global'
- Next message: [Python-Dev] replacing 'global'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Skip Montanaro strung bits together to say:
> This is one place I think an extension of the global statement has a
> definite advantage:
>
> def f():
> def g():
> global z in f
> z = x
>
Alternately (using Just's 'rebinding non-local' syntax:
def f():
z = None
def g():
z := x
Cheers,
Nick.
--
Nick Coghlan | Brisbane, Australia
ICQ#: 68854767 | ncoghlan at email.com
Mobile: 0409 573 268 | http://www.talkinboutstuff.net
"Let go your prejudices,
lest they limit your thoughts and actions."
- 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