Message132435
True, this could be documented better - flagging as a docs bug. (It is mentioned at the bottom of http://docs.python.org/library/functools.html#partial-objects, but that could be referenced better from the main documentation of the function higher up in the page)
There's actually more to it than just an oversight though - partial() fills in positional arguments from the left, so using one as a method would require specification of a carefully crafted selection of positional and keyword arguments to ensure the instance was bound and passed in at the right point. |
|
Date |
User |
Action |
Args |
2011-03-28 22:27:48 | ncoghlan | set | recipients:
+ ncoghlan, alex, docs@python |
2011-03-28 22:27:48 | ncoghlan | set | messageid: <1301351268.63.0.969295707351.issue11704@psf.upfronthosting.co.za> |
2011-03-28 22:27:46 | ncoghlan | link | issue11704 messages |
2011-03-28 22:27:46 | ncoghlan | create | |
|