Does a function like isset() exist in Python?

Patrick Fitzsimmons patfitz at gmail.com
Wed Jun 22 23:09:57 EDT 2005


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



More information about the Python-list mailing list