Serhiy Storchaka added the comment:

Here is a patch that adds fast checks before calling _PyArg_NoKeywords().

Other option is redefine _PyArg_NoKeywords as a macro:

#define _PyArg_NoKeywords(name, kw)  ((kw) != NULL && _PyArg_NoKeywords((name), 
(kw)))

This will affect all usages of _PyArg_NoKeywords.

----------
Added file: 
http://bugs.python.org/file42583/operator_getters_kwargs_speedup.patch

_______________________________________
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