8000 gh-97980: New -> Strong reference in code docs by Fidget-Spinner · Pull Request #97981 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-97980: New -> Strong reference in code docs #97981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
New -> Strong reference in code docs
  • Loading branch information
Fidget-Spinner committed Oct 6, 2022
commit cac363ff6ce4e41f41b2db8f2e54c621a9dce00e
6 changes: 3 additions & 3 deletions Doc/c-api/code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ bound into a function.
.. c:function:: PyObject* PyCode_GetVarnames(PyCodeObject *co)

Equivalent to the Python code ``getattr(co, 'co_varnames')``.
Returns a new reference to a :c:type:`PyTupleObject` containing the names of
Returns a strong reference to a :c:type:`PyTupleObject` containing the names of
the local variables. On error, ``NULL`` is returned and an exception
is raised.

Expand All @@ -102,7 +102,7 @@ bound into a function.
.. c:function:: PyObject* PyCode_GetCellvars(PyCodeObject *co)

Equivalent to the Python code ``getattr(co, 'co_cellvars')``.
Returns a new reference to a :c:type:`PyTupleObject` containing the names of
Returns a strong reference to a :c:type:`PyTupleObject` containing the names of
the local variables that are referenced by nested functions. On error, ``NULL``
is returned and an exception is raised.

Expand All @@ -111,7 +111,7 @@ bound into a function.
.. c:function:: PyObject* PyCode_GetFreevars(PyCodeObject *co)

Equivalent to the Python code ``getattr(co, 'co_freevars')``.
Returns a new reference to a :c:type:`PyTupleObject` containing the names of
Returns a strong reference to a :c:type:`PyTupleObject` containing the names of
the free variables. On error, ``NULL`` is returned and an exception is raised.

.. versionadded:: 3.11
0