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 b9
Recipients b9, docs@python
Date 2014-06-20.10:02:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403258532.08.0.198623829613.issue21814@psf.upfronthosting.co.za>
In-reply-to
Content
In: https://docs.python.org/2.7/reference/datamodel.html#customizing-attribute-access

Regarding the description of __setattr__ method: "For new-style classes, rather than accessing the instance dictionary, it should call the base class method with the same name, for example, object.__setattr__(self, name, value)."

Wouldn't it be more consistent for new-style classes, instead of calling "object.__setattr__(self, name, value)", to call "super(<ClassName>, self).__setattr__(name, value)"?
History
Date User Action Args
2014-06-20 10:02:12b9setrecipients: + b9, docs@python
2014-06-20 10:02:12b9setmessageid: <1403258532.08.0.198623829613.issue21814@psf.upfronthosting.co.za>
2014-06-20 10:02:12b9linkissue21814 messages
2014-06-20 10:02:11b9create