New submission from Ethan Furman: Part of the solution for Issue18693 is to have `inspect.classify_class_attrs()` properly consider the metaclass (or type) of the class when searching for the origination point of class attributes.
The fix is changing line 325: - for base in (cls,) + mro: + for base in (cls,) + mro + (type(cls),): or line 361: - return cls.__mro__ + return cls.__mro__ + (type(cls), ) Should we target previous Pythons with this fix? ---------- messages: 196973 nosy: eli.bendersky, ethan.furman priority: normal severity: normal status: open title: inspect.classify_class_attrs ignores metaclass type: behavior versions: Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18929> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com