Skip to content

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

Closed
@serhiy-storchaka

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

Metadata

Metadata

Labels

3.11only security fixes3.12bugs and security fixes3.13bugs and 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