"Extracting" a dictionary

Heiko Wundram heikowu at ceosg.de
Mon May 17 16:28:27 EDT 2004


Am Montag, 17. Mai 2004 21:34 schrieb Leif K-Brooks:
>  >>> locals().update(vars)

From the documentation:

"""
locals()

Update and return a dictionary representing the current local symbol table. 
Warning: The contents of this dictionary should not be modified; changes may 
not affect the values of local variables used by the interpreter.
"""

Heiko.




More information about the Python-list mailing list