undefined variable ?

Chris S. chrisks at NOSPAM.udel.edu
Sat Oct 16 05:45:16 EDT 2004


vertigo wrote:

> Hello
> How can i check if variable named var1 exists ?

if 'var1' in globals():
     ...



More information about the Python-list mailing list