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/128402.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 19:01:32 CEST 2013
On 09/06/2013 09:37 AM, R. David Murray wrote:
> On Fri, 06 Sep 2013 08:59:02 -0700, Ethan Furman <ethan at stoneleaf.us> wrote:
>>
>> For the short term I can restrict the change to inspect.classify_class_attrs().
>
> Sounds like the best course.

There is one other function in inspect that calls getmro():

def getmembers(object, predicate=None):
     """Return all members of an object as (name, value) pairs sorted by name.
     Optionally, only return members that satisfy a given predicate."""
     if isclass(object):
         mro = (object,) + getmro(object)

Should I add `+ getmro(type(object))` here as well?

--
~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