mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
bpo-42262: Add Py_NewRef() and Py_XNewRef() (GH-23152)
Added Py_NewRef() and Py_XNewRef() functions to increment the reference count of an object and return the object.
This commit is contained in:
parent
80449f243b
commit
53a03aafd5
7 changed files with 85 additions and 6 deletions
|
|
@ -40,8 +40,8 @@ EXPORT_FUNC(Py_AddPendingCall)
|
|||
EXPORT_FUNC(Py_AtExit)
|
||||
EXPORT_FUNC(Py_BuildValue)
|
||||
EXPORT_FUNC(Py_CompileString)
|
||||
EXPORT_FUNC(Py_DecodeLocale)
|
||||
EXPORT_FUNC(Py_DecRef)
|
||||
EXPORT_FUNC(Py_DecodeLocale)
|
||||
EXPORT_FUNC(Py_EncodeLocale)
|
||||
EXPORT_FUNC(Py_EndInterpreter)
|
||||
EXPORT_FUNC(Py_EnterRecursiveCall)
|
||||
|
|
@ -72,6 +72,7 @@ EXPORT_FUNC(Py_LeaveRecursiveCall)
|
|||
EXPORT_FUNC(Py_Main)
|
||||
EXPORT_FUNC(Py_MakePendingCalls)
|
||||
EXPORT_FUNC(Py_NewInterpreter)
|
||||
EXPORT_FUNC(Py_NewRef)
|
||||
EXPORT_FUNC(Py_ReprEnter)
|
||||
EXPORT_FUNC(Py_ReprLeave)
|
||||
EXPORT_FUNC(Py_SetPath)
|
||||
|
|
@ -80,6 +81,7 @@ EXPORT_FUNC(Py_SetPythonHome)
|
|||
EXPORT_FUNC(Py_SetRecursionLimit)
|
||||
EXPORT_FUNC(Py_SymtableString)
|
||||
EXPORT_FUNC(Py_VaBuildValue)
|
||||
EXPORT_FUNC(Py_XNewRef)
|
||||
EXPORT_FUNC(PyArg_Parse)
|
||||
EXPORT_FUNC(PyArg_ParseTuple)
|
||||
EXPORT_FUNC(PyArg_ParseTupleAndKeywords)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue