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 ncoghlan
Recipients alex, docs@python, ncoghlan
Date 2011-03-28.22:27:46
SpamBayes Score 0.00012663817
Marked as misclassified No
Message-id <1301351268.63.0.969295707351.issue11704@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-03-28 22:27:48ncoghlansetrecipients: + ncoghlan, alex, docs@python
2011-03-28 22:27:48ncoghlansetmessageid: <1301351268.63.0.969295707351.issue11704@psf.upfronthosting.co.za>
2011-03-28 22:27:46ncoghlanlinkissue11704 messages
2011-03-28 22:27:46ncoghlancreate