Josh Rosenberg added the comment:

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.

----------
nosy: +josh.r

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26822>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to