[issue26822] itemgetter/attrgetter/methodcaller objects ignore keyword arguments
Josh Rosenberg
report at bugs.python.org
Thu Apr 21 18:15:03 EDT 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue26822>
_______________________________________
More information about the Python-bugs-list
mailing list