10000 gh-98154: Clarify Usage of "Reference Count" In the Docs by ericsnowcurrently · Pull Request #107552 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-98154: Clarify Usage of "Reference Count" In the Docs #107552

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

Merged
merged 15 commits into from
Aug 7, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update the module doc.
  • Loading branch information
ericsnowcurrently committed Aug 1, 2023
commit a01316531f2e8d8bbfb30388c8b1b5563ee614cf
2 changes: 1 addition & 1 deletion Doc/c-api/module.rst
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ state:
.. note::

Unlike other functions that steal references, ``PyModule_AddObject()``
only decrements the reference count of *value* **on success**.
only releases the reference to *value* **on success**.

This means that its return value must be checked, and calling code must
:c:func:`Py_XDECREF` *value* manually on error.
Expand Down
0