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 docs@python, r.david.murray, siccegge
Date 2016-10-16.18:47:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476643659.36.0.306604781692.issue28455@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation assumes you know how python class methods work, but I agree that the wording is not entirely obvious even then and could be improved.  In particular it should make clear that the example shows how to define the function for subclassing or assignment to the class object.  If you assign it to the instance, as in your example, then indeed self does not get passed and you want a true single argument function.
History
Date User Action Args
2016-10-16 18:47:39r.david.murraysetrecipients: + r.david.murray, docs@python, siccegge
2016-10-16 18:47:39r.david.murraysetmessageid: <1476643659.36.0.306604781692.issue28455@psf.upfronthosting.co.za>
2016-10-16 18:47:39r.david.murraylinkissue28455 messages
2016-10-16 18:47:39r.david.murraycreate