]> granicus.if.org Git - python/commit
Optimize _PyCFunction_FastCallKeywords()
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 16 Jan 2017 16:18:53 +0000 (17:18 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 16 Jan 2017 16:18:53 +0000 (17:18 +0100)
commit7fc252adfbedece75f2330bcfdadbf84dee7836f
tree46a72327ee83962cdde9ff0070aa925cebe65b9e
parent15f94596b64aa9809fac63c395ddc4308d2b0e68
Optimize _PyCFunction_FastCallKeywords()

Issue #29259: Write fast path in _PyCFunction_FastCallKeywords() for
METH_FASTCALL, avoid the creation of a temporary dictionary for keyword
arguments.

Cleanup also _PyCFunction_FastCallDict():

* Don't dereference func before checking that it's not NULL
* Move code to raise the "no keyword argument" exception into a new
  no_keyword_error label.

Update python-gdb.py for the change.
Objects/methodobject.c
Tools/gdb/libpython.py