There are custom Argument Clinic converters that define format_unit but omit parse_arg. As a result, generation of positional argument parsers is forced to back up from the fastest possible _PyArg_CheckPositional to slower _PyArg_ParseStack-based format strings.
Here is a list of such classes (and fixing PRs except complex cases):
There are custom Argument Clinic converters that define
format_unit
but omitparse_arg
. As a result, generation of positional argument parsers is forced to back up from the fastest possible_PyArg_CheckPositional
to slower_PyArg_ParseStack
-based format strings.Here is a list of such classes (and fixing PRs except complex cases):
Modules\_multiprocessing\multiprocessing.c (gh-94517)
Modules\_multiprocessing\semaphore.c
Modules\overlapped.c (gh-94516)
Modules\posixmodule.c:
Modules\resource.c (gh-94515)
PC\msvcrtmodule.c (gh-94514)
PC\winreg.c (gh-94513)
An example of such a converter:
I'm going to teach all of them about low-level generation by replacing manual
format_unit
definitions with:parse_arg
s in other places.For the example it gives:
The text was updated successfully, but these errors were encountered: