John Salerno wrote: > Tim Chase wrote: > >> While this is surely true, would somebody explain why I had such >> trouble finding this? > > I think __name__ is an attribute of the class itself, not the instance:
On the other hand: >>> class Foo(object): pass >>> dir(Foo) ['__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__weakref__'] Hmmm..... -- http://mail.python.org/mailman/listinfo/python-list