summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-11-27 17:57:30 (GMT)
committerGitHub <noreply@github.com>2023-11-27 17:57:30 (GMT)
commit46047bb12b4570adc9f81577568669930e12b590 (patch)
tree3b9f43ceda6356f4cd3dedd77a9706b55201a6fa /Python/getargs.c
parent3ef75ee5844e11c7bc804499cfc09bfc78abd12b (diff)
downloadcpython-46047bb12b4570adc9f81577568669930e12b590.zip
cpython-46047bb12b4570adc9f81577568669930e12b590.tar.gz
cpython-46047bb12b4570adc9f81577568669930e12b590.tar.bz2
[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 4eea1e82369fbf7a795d1956e7a8212a1b58009f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 66dd908..066739f 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -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++;
}