diff options
| author | INADA Naoki <songofacandy@gmail.com> | 2017-01-19 11:50:34 (GMT) |
|---|---|---|
| committer | INADA Naoki <songofacandy@gmail.com> | 2017-01-19 11:50:34 (GMT) |
| commit | bd584f169f3c5c0caf25ce86de71fd1aa780a712 (patch) | |
| tree | 44ffe3e24a7fb2fa6ae7de4bf1704d279611433a /Lib/test/support/script_helper.py | |
| parent | 91f0d4aa2fae249479e5ecdc76aee6f5c13d0994 (diff) | |
| download | cpython-bd584f169f3c5c0caf25ce86de71fd1aa780a712.zip cpython-bd584f169f3c5c0caf25ce86de71fd1aa780a712.tar.gz cpython-bd584f169f3c5c0caf25ce86de71fd1aa780a712.tar.bz2 | |
Issue #29296: convert print() to METH_FASTCALL
* Replace PyArg_ParseTupleAndKeywords() with _PyArg_ParseStackAndKeywords()
which is more efficient to parse keywords, since it decodes only keywords
(char*) from UTF-8 once, instead of decoding at each call.
* METH_FASTCALL avoids the creation of a temporary tuple to pass positional
arguments.
Patch written by INADA Naoki, pushed by Victor Stinner.
Diffstat (limited to 'Lib/test/support/script_helper.py')
0 files changed, 0 insertions, 0 deletions
