Ethan Furman added the comment:

R David Murray said:
>
>Special casing Enum in inspect has a code smell to it.

I agree, and I'm certainly open to other options.

The flow at this point is:

  help() --> inspect.classify_class_attrs --> dir() --> Enum.__dir__

Because inspect relies on dir and Enum's dir has been customized, inspect will 
fail to return the whole story.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19030>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to