[New-bugs-announce] [issue29451] Use _PyArg_Parser for _PyArg_ParseStack(): support positional only arguments

STINNER Victor report at bugs.python.org
Sun Feb 5 05:09:13 EST 2017


New submission from STINNER Victor:

Serhiy Storshaka wrote a kind of cache for PyArg_ParseTupleAndKeywords(): _PyArg_Parser structure used by _PyArg_ParseTupleAndKeywordsFast(). It makes argument parser much faster.

Would it be possible to modify it to be able to use it in _PyArg_ParseStack(). (Would it be faster?)

See also issue #29419 "Argument Clinic: inline PyArg_UnpackTuple and PyArg_ParseStack(AndKeyword)?" for a different kind of optimization.

----------
components: Interpreter Core
messages: 287043
nosy: haypo, inada.naoki, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Use _PyArg_Parser for _PyArg_ParseStack(): support positional only arguments
type: performance
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29451>
_______________________________________


More information about the New-bugs-announce mailing list