[issue16938] pydoc confused by __dir__

Nick Coghlan report at bugs.python.org
Sun Oct 13 17:03:34 CEST 2013


Nick Coghlan added the comment:

That means __objclass__ can have its meaning broadened to say "this is where this particular instance of this kind of object was defined", and that and __class__ are just coincidentally the same for Enum objects.

We should *not* need to have any Enum specific code in the inspect module, and the current code that tries to find the home class has Enum specific assumptions.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16938>
_______________________________________


More information about the Python-bugs-list mailing list