Message221082
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)"? |
|
Date |
User |
Action |
Args |
2014-06-20 10:02:12 | b9 | set | recipients:
+ b9, docs@python |
2014-06-20 10:02:12 | b9 | set | messageid: <1403258532.08.0.198623829613.issue21814@psf.upfronthosting.co.za> |
2014-06-20 10:02:12 | b9 | link | issue21814 messages |
2014-06-20 10:02:11 | b9 | create | |
|