This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Chinmay.Kanchi, r.david.murray
Date 2010-12-08.02:29:43
SpamBayes Score 4.2061478e-07
Marked as misclassified No
Message-id <1291775385.57.0.557964972703.issue10649@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-12-08 02:29:45r.david.murraysetrecipients: + r.david.murray, Chinmay.Kanchi
2010-12-08 02:29:45r.david.murraysetmessageid: <1291775385.57.0.557964972703.issue10649@psf.upfronthosting.co.za>
2010-12-08 02:29:44r.david.murraylinkissue10649 messages
2010-12-08 02:29:44r.david.murraycreate