View Single Post
Old May 3rd, 2005, 9:54 PM   #2
al1986
Newbie
 
Join Date: Feb 2005
Posts: 24
Rep Power: 0 al1986 is on a distinguished road
You could do something like:
if vars().has_key("x"):
    # Do something
But I reckon exception handling would be a better option.
al1986 is offline   Reply With Quote