Message278775
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. |
|
Date |
User |
Action |
Args |
2016-10-16 18:47:39 | r.david.murray | set | recipients:
+ r.david.murray, docs@python, siccegge |
2016-10-16 18:47:39 | r.david.murray | set | messageid: <1476643659.36.0.306604781692.issue28455@psf.upfronthosting.co.za> |
2016-10-16 18:47:39 | r.david.murray | link | issue28455 messages |
2016-10-16 18:47:39 | r.david.murray | create | |
|