AttributeError: How to list existing attributes?

2007-09-19 Thread Thomas Guettler
Hi, how can you list the attributes of an object if you catch an AttributeError? I couldn't find a reference in the exception object, which points to the object. I want to call dir() on the object to list the user the known attributes. Is there a way to find the object by inspecting the

Re: AttributeError: How to list existing attributes?

2007-09-19 Thread Diez B. Roggisch
Thomas Guettler wrote: Hi, how can you list the attributes of an object if you catch an AttributeError? I couldn't find a reference in the exception object, which points to the object. I want to call dir() on the object to list the user the known attributes. Is there a way to find

Re: AttributeError: How to list existing attributes?

2007-09-19 Thread Thomas Guettler
Diez B. Roggisch wrote: Thomas Guettler wrote: Hi, how can you list the attributes of an object if you catch an AttributeError? I couldn't find a reference in the exception object, which points to the object. I want to call dir() on the object to list the user the known attributes.