10000 bpo-28254: Add a C-API for controlling the state of the garbage collector by scoder · Pull Request #25687 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-28254: Add a C-API for controlling the state of the garbage collector #25687

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 17 commits into from
Apr 28, 2021
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
Fix version marker (II).
  • Loading branch information
scoder committed Apr 28, 2021
commit 84fb2afd755945720d581908dac5309461cc72e8
6 changes: 3 additions & 3 deletions Doc/c-api/gcsupport.rst
Original file line number Diff line number Diff line change
Expand Up @@ -199,20 +199,20 @@ garbage collection runs.
Enable the garbage collector: similar to :func:`gc.enable`.
Returns the previous state, 0 for disabled and 1 for enabled.

.. versionadded:: 3.10
.. versionadded:: 3.10


.. c:function:: int PyGC_Disable(void)

Disable the garbage collector: similar to :func:`gc.disable`.
Returns the previous state, 0 for disabled and 1 for enabled.

.. versionadded:: 3.10
.. versionadded:: 3.10


.. c:function:: int PyGC_IsEnabled(void)

Query the state of the garbage collector: similar to :func:`gc.isenabled`.
Returns the current state, 0 for disabled and 1 for enabled.

.. versionadded:: 3.10
.. versionadded:: 3.10
0