[issue26822] itemgetter/attrgetter/methodcaller objects ignore keyword arguments
Raymond Hettinger
report at bugs.python.org
Sun Apr 24 15:35:29 EDT 2016
Raymond Hettinger added the comment:
In general there should be an early out test for keywords==NULL before calling the comparatively high overhead function _PyArg_NoKeywords.
That function adds overhead everywhere it is used and provides zero benefit to correct programs in order to provide earlier detection of a very rare class of errors.
Some care needs to be taken before slapping _PyArg_NoKeywords onto every function in the core that doesn't use keyword arguments.
----------
nosy: +rhettinger
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26822>
_______________________________________
More information about the Python-bugs-list
mailing list