mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
[3.14] Document that PyInterpreterState_GetDict returns a borrowed reference (GH-139451) (#139463)
Document that `PyInterpreterState_GetDict` returns a borrowed reference (GH-139451)
(cherry picked from commit 80cdf3ef74)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
parent
622f37f9dd
commit
1ae1db8056
2 changed files with 6 additions and 0 deletions
|
|
@ -1547,6 +1547,9 @@ All of the following functions must be called after :c:func:`Py_Initialize`.
|
|||
This is not a replacement for :c:func:`PyModule_GetState()`, which
|
||||
extensions should use to store interpreter-specific state information.
|
||||
|
||||
The returned dictionary is borrowed from the interpreter and is valid until
|
||||
interpreter shutdown.
|
||||
|
||||
.. versionadded:: 3.8
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1144,6 +1144,9 @@ PyInterpreterState_Clear:PyInterpreterState*:interp::
|
|||
PyInterpreterState_Delete:void:::
|
||||
PyInterpreterState_Delete:PyInterpreterState*:interp::
|
||||
|
||||
PyInterpreterState_GetDict:PyObject*::0:
|
||||
PyInterpreterState_GetDict:PyInterpreterState*:interp::
|
||||
|
||||
PyInterpreterState_GetID:int64_t:::
|
||||
PyInterpreterState_GetID:PyInterpreterState*:interp::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue