[Python-Dev] inspect and metaclasses
Armin Rigo
arigo at tunes.org
Fri Sep 6 16:47:15 CEST 2013
More information about the Python-Dev mailing list
Fri Sep 6 16:47:15 CEST 2013
- Previous message: [Python-Dev] inspect and metaclasses
- Next message: [Python-Dev] inspect and metaclasses
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Ethan, Are you suggesting that inspect.get_mro(A) would return (A, object, type)? That seems very wrong to me. If the goal is to fix `inspect.classify_class_attrs()`, then this function only needs a specific fix, along the lines of looking in `get_mro(A) + get_mro(type(A))`. (A more minor issue is that the bug report suggests `... + (type(A),)` only, but that's wrong: Python will also look in all the base classes of type(A).) "Fixing" inspect.get_mro() as suggested would break a lot of other usages of it. A bientôt, Armin.
- Previous message: [Python-Dev] inspect and metaclasses
- Next message: [Python-Dev] inspect and metaclasses
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list