Variables and none?

Ivan Shevanski darkpaladin79 at gmail.com
Fri Jan 20 22:43:45 EST 2006


Alright first of all I'd like to say I'm a python noob.

Now that thats over with, heres what I'd like to know about.  Is there a
python way to detect if a variable exsists?  Say I had a program that needed
a certain variable to be set to run and the variable was not found when it
came time to use it. . .Would I just have to catch the error, or could I
have python look for the variable beforehand?



Thanks,

-Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060120/da45b7bc/attachment.html>


More information about the Python-list mailing list