Get name of class without instance

Terry Reedy tjreedy at udel.edu
Wed Jun 24 14:40:36 EDT 2009


Bryan wrote:

> How come dir(Foo) does not show __name__?  That is how I was
> investigating the possibilities.

Interesting question. Seems like an oversight. dir(some_module) and 
dir(some_function) include '__name__'. I suggest you search the tracker 
for existing issues on this subject and add a feature request if there 
is none.





More information about the Python-list mailing list