Skip to content

Fix support of format units with the "e" prefix in nested tuples in PyArg_Parse #112438

Description

@serhiy-storchaka

Bug report

PyArg_Parse format units es, et, es#, and et# are not correctly supported in nested tuples. This is because the code for parsing nested tuples counts the number of alphabetical symbols to determine the number of items. But "e" is a prefix and should not be counted.

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

3.11only security fixes3.12only security fixes3.13only security fixestopic-C-APItype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions