Part of the fix for issue #18693 is to fix inspect to look in the metaclass for class attributes
(http://bugs.python.org/issue18929).
In inspect.py in function get_mro() we can either add the metaclass
unconditionally, or only if it is not 'type'.
If we add unconditionally, then help() adds the following:
class A(builtins.object)
| Hello and goodbye
+ |
+ | Method resolution order:
+ | A
+ | builtins.object
+ | builtins.type
|
| Methods defined here:
Do we want that, or should we just add the metaclass if it is not 'type'?
--
~Ethan~
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com