R. David Murray <rdmur...@bitdance.com> added the comment: As you observe, the attribute is not read only, it simply isn't referred to when special method lookup is done. This is specified as part of the language design for new style classes, but has only been made consistently true in recent versions.
On on the other hand, the special methods are not special in regard to their read-only nature on builtin types: >>> l = list() >>> l.append = '1' Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'list' object attribute 'append' is read-only Thus, this is not a bug, it's just the way the language works. ---------- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10649> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com