Benjamin Peterson <benja...@python.org> added the comment: I don't think this is actually incorrect. Basically setting something in the class body is not equivalent to setting it as an attribute on the class.
This happens with other attributes. Consider >>> class X: ... __class__ = list ... >>> X.__class__ <class 'type'> >>> X().__class__ <class 'list'> ---------- nosy: +benjamin.peterson _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14092> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com