Patrick Fitzsimmons wrote: > Hi, > > I'm sure I should know this, but I can't find it in the manual. > > Is there a function in Python like the function in PHP isset()? It > should take a variable name and return True or False depending on > whether the variable is initialized. > > Thanks for any help, > Patrick
try: doDomething(myVar) except NameError: print "myVar is not set" /Esben -- http://mail.python.org/mailman/listinfo/python-list