Benjamin Peterson <benja...@python.org> added the comment: 2010/10/1 Yaroslav Halchenko <rep...@bugs.python.org>: > > Yaroslav Halchenko <yarikop...@gmail.com> added the comment: > > yikes... surprising resolution -- I expected that fix would either makes > __abstractmethods__ accessible in derived "type"s or becomes absent from > output of dir() -- but none of those has happened. Now we ended up with a > consistent non-Pythonic fate of __abstractmethods__ listed in output of dir() > but not accessible. is that a feature?
type has no __abstractmethods__, so it should raise an AttributeError. Note descriptors are allowed to raise AttributeError even if they're in dir(). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10006> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com