commit | fc980e0be19776ee05dfc5380eb5d6a8092935cb | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@python.org> | Thu Mar 18 14:51:24 2021 +0100 |
committer | GitHub <noreply@github.com> | Thu Mar 18 14:51:24 2021 +0100 |
tree | c0787fde92f0cdd00c609c5089be97fad7d01618 | |
parent | 6af528b4ab342805534c0bfe61d84ed7bb519468 [diff] |
bpo-43541: Fix PyEval_EvalCodeEx() regression (GH-24918) * Remove an assertion which required CO_NEWLOCALS and CO_OPTIMIZED code flags. It is ok to call this function on a code with these flags set. * Fix reference counting on builtins: remove Py_DECREF(). Fix regression introduced in the commit 46496f9d12582bf11f4911ad0f23315d6f277907. Add also a comment to document that _PyEval_BuiltinsFromGlobals() returns a borrowed reference.