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 <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