]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Reuse identifier of PREDICT macros as PREDICT_ID (GH-17155)
authorDenis Chernikov <tchernikoff.denis2013@yandex.ru>
Fri, 21 Feb 2020 09:17:50 +0000 (12:17 +0300)
committerGitHub <noreply@github.com>
Fri, 21 Feb 2020 09:17:50 +0000 (10:17 +0100)
commitbaf29b221682be0f4fde53a05ea3f57c3c79f431
treed98ffbf68f4d566e0a0468dd29b17eb06ec653b8
parentd4331c56b4f6fe6f18caf19fc1ecf9fec14f7066
Reuse identifier of PREDICT macros as PREDICT_ID (GH-17155)

In function `_PyEval_EvalFrameDefault`, macros PREDICT and PREDICTED use the same identifier creation scheme, which may be shared between them, reducing code repetition, and do ensure that the same identifier is generated.
Python/ceval.c