mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
[3.12] gh-112438: Fix support of format units with the "e" prefix in nested tuples in PyArg_Parse (gh-112439) (GH-112460)
(cherry picked from commit 4eea1e8236
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
3ef75ee584
commit
46047bb12b
4 changed files with 40 additions and 6 deletions
|
@ -522,7 +522,7 @@ converttuple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
|
|||
}
|
||||
else if (c == ':' || c == ';' || c == '\0')
|
||||
break;
|
||||
else if (level == 0 && Py_ISALPHA(c))
|
||||
else if (level == 0 && Py_ISALPHA(c) && c != 'e')
|
||||
n++;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue