summaryrefslogtreecommitdiffstats
path: root/Include/cpython/frameobject.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-02-18 18:20:16 (GMT)
committerGitHub <noreply@github.com>2021-02-18 18:20:16 (GMT)
commit44085a3fc9a150478aec1872dd1079c60dcc42f6 (patch)
tree1120f81009d599e9d5db25978e25ea4d757bc875 /Include/cpython/frameobject.h
parentcc96231f0a59cc7393943064800ecb6c18892662 (diff)
downloadcpython-44085a3fc9a150478aec1872dd1079c60dcc42f6.zip
cpython-44085a3fc9a150478aec1872dd1079c60dcc42f6.tar.gz
cpython-44085a3fc9a150478aec1872dd1079c60dcc42f6.tar.bz2
bpo-42990: Refactor _PyFrame_New_NoTrack() (GH-24566)
* Refactor _PyFrame_New_NoTrack() and PyFunction_NewWithQualName() code. * PyFrame_New() checks for _PyEval_BuiltinsFromGlobals() failure. * Fix a ref leak in _PyEval_BuiltinsFromGlobals() error path. * Complete PyFunction_GetModule() documentation: it returns a borrowed reference and it can return NULL. * Move _PyEval_BuiltinsFromGlobals() definition to the internal C API. * PyFunction_NewWithQualName() uses _Py_IDENTIFIER() API for the "__name__" string to make it compatible with subinterpreters.
Diffstat (limited to 'Include/cpython/frameobject.h')
-rw-r--r--Include/cpython/frameobject.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/Include/cpython/frameobject.h b/Include/cpython/frameobject.h
index 5a19c00..5122ec4 100644
--- a/Include/cpython/frameobject.h
+++ b/Include/cpython/frameobject.h
@@ -92,5 +92,3 @@ PyAPI_FUNC(void) PyFrame_FastToLocals(PyFrameObject *);
PyAPI_FUNC(void) _PyFrame_DebugMallocStats(FILE *out);
PyAPI_FUNC(PyFrameObject *) PyFrame_GetBack(PyFrameObject *frame);
-
-PyObject *_PyEval_BuiltinsFromGlobals(PyObject *globals);