How to know when a variable is set

Skip Montanaro skip at
Wed Nov 14 16:32:36 CET 2001

>> How can I test if a variable has been given a value, or if it's
>> undefined?

    except NameError:

Skip Montanaro (skip at -
It's only a 25% solution to our problem.  Of course, if we only want to
solve 25% of our problem it becomes a 100% solution.

More information about the Python-list mailing list