Test to see if variable exists
Graham Breed
usenet at microtonal.co.uk
Tue Aug 12 12:32:28 EDT 2003
lamar_air wrote:
> I need an if statement to test if a variable exists in a pyton script
locals().has_key('var1')
More information about the Python-list
mailing list