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 josh.r
Recipients josh.r, serhiy.storchaka
Date 2016-04-21.22:15:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461276903.6.0.819553999336.issue26822@psf.upfronthosting.co.za>
In-reply-to
Content
Seems sensible for itemgetter and attrgetter, where all but the first argument is nonsensical anyway.

It really seems like methodcaller should allow additional arguments (positional and keyword though), a la functools.partial (the difference being the support for duck-typed methods, where functools.partial only supports unbound methods for a specific type). I suppose #25454 disagrees, but it seems very strange how `methodcaller` is like `functools.partial`, but without call time argument binding, only definition time.
History
Date User Action Args
2016-04-21 22:15:03josh.rsetrecipients: + josh.r, serhiy.storchaka
2016-04-21 22:15:03josh.rsetmessageid: <1461276903.6.0.819553999336.issue26822@psf.upfronthosting.co.za>
2016-04-21 22:15:03josh.rlinkissue26822 messages
2016-04-21 22:15:03josh.rcreate