Ethan Furman added the comment: Okay, some slight reorganizing. Current patch gives preferential treatment to getattr, falling back on dict lookup if getattr raises an exception or if the resulting object's class is not found in the mro (including the metaclass mro).
Amazingly, nothing appeared to break in the test suite. :) If no kibitzing in the next couple days I'll write some tests to better excercise the metaclass portion (I used Enum for interactive testing). ---------- Added file: http://bugs.python.org/file31812/issue19030.stoneleaf.03.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19030> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com