Finding the name of a class

Shane Hathaway shane at hathawaymix.org
Tue Aug 1 12:13:08 EDT 2006


John Salerno wrote:
>  >>> class Foo(object):
> 	pass
> 
>  >>> dir(Foo)
> ['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__', 
> '__hash__', '__init__', '__module__', '__new__', '__reduce__', 
> '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__']
> 
> Hmmm.....

Don't forget to file a bug.

Shane



More information about the Python-list mailing list