]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42990: Refactor _PyFrame_New_NoTrack() (GH-24566)
authorVictor Stinner <vstinner@python.org>
Thu, 18 Feb 2021 18:20:16 +0000 (19:20 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Feb 2021 18:20:16 +0000 (19:20 +0100)
commit44085a3fc9a150478aec1872dd1079c60dcc42f6
tree1120f81009d599e9d5db25978e25ea4d757bc875
parentcc96231f0a59cc7393943064800ecb6c18892662
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.
Doc/c-api/function.rst
Include/cpython/frameobject.h
Include/internal/pycore_ceval.h
Objects/frameobject.c
Objects/funcobject.c
Python/ceval.c