Create a variable "on the fly"

Steve M sjmaster at gmail.com
Wed Jul 27 13:15:31 EDT 2005


PythonWin 2.3.5 (#62, Feb  9 2005, 16:17:08) [MSC v.1200 32 bit
(Intel)] on win32.
Portions Copyright 1994-2004 Mark Hammond (mhammond at skippinet.com.au) -
see 'Help/About PythonWin' for further copyright information.
>>> locals()['OSCAR'] = 'the grouch'
>>> OSCAR
'the grouch'
>>>




More information about the Python-list mailing list