A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-September/128362.html below:

[Python-Dev] inspect and metaclasses

[Python-Dev] inspect and metaclasses [Python-Dev] inspect and metaclassesEthan Furman ethan at stoneleaf.us
Fri Sep 6 15:32:46 CEST 2013
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~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4