I want to check if a variable exists. Now I\'m doing something like this:
try: myVar except NameError: # Do something.
Are there othe
catch is called except in Python. other than that it's fine for such simple cases. There's the AttributeError that can be used to check if an object has an attribute.
catch