homepage

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 stutzbach
Recipients cvrebert, docs@python, ezio.melotti, rhettinger, stutzbach, terry.reedy
Date 2011年05月27日.16:45:36
SpamBayes Score 9.758604e-06
Marked as misclassified No
Message-id <1306514737.18.0.568822302015.issue12192@psf.upfronthosting.co.za>
In-reply-to
Content
> Comment: This rule applies to special methods like __getitem__
> and __setitem__. 'lis.append(item)' is equivalent to
> lis.__setitem__(len(lis):len(lis), item), so it should not be so
> surprising that it has the same return.
It's not true for all special methods. __iadd__ and __imul__ return the list itself.
That's a minor nitpick though. +1 on adding "and return None" to the docstrings of methods that often trip people up. Not everyone will read them, but some people will.
History
Date User Action Args
2011年05月27日 16:45:37stutzbachsetrecipients: + stutzbach, rhettinger, terry.reedy, ezio.melotti, cvrebert, docs@python
2011年05月27日 16:45:37stutzbachsetmessageid: <1306514737.18.0.568822302015.issue12192@psf.upfronthosting.co.za>
2011年05月27日 16:45:36stutzbachlinkissue12192 messages
2011年05月27日 16:45:36stutzbachcreate

AltStyle によって変換されたページ (->オリジナル) /