summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-03-18 13:51:24 (GMT)
committerGitHub <noreply@github.com>2021-03-18 13:51:24 (GMT)
commitfc980e0be19776ee05dfc5380eb5d6a8092935cb (patch)
treec0787fde92f0cdd00c609c5089be97fad7d01618 /Misc
parent6af528b4ab342805534c0bfe61d84ed7bb519468 (diff)
downloadcpython-fc980e0be19776ee05dfc5380eb5d6a8092935cb.zip
cpython-fc980e0be19776ee05dfc5380eb5d6a8092935cb.tar.gz
cpython-fc980e0be19776ee05dfc5380eb5d6a8092935cb.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2021-03-18-12-44-33.bpo-43541.ICigzd.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2021-03-18-12-44-33.bpo-43541.ICigzd.rst b/Misc/NEWS.d/next/C API/2021-03-18-12-44-33.bpo-43541.ICigzd.rst
new file mode 100644
index 0000000..0f5d938
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2021-03-18-12-44-33.bpo-43541.ICigzd.rst
@@ -0,0 +1,2 @@
+Fix a ``PyEval_EvalCodeEx()`` regression: fix reference counting on
+builtins. Patch by Victor Stinner.