8000 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
Next Next commit
Apply suggestions from doc review
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
scoder and vstinner authored Apr 28, 2021
commit 10ad9294aeeb4aeb01050ea976340867b58f9740
6 changes: 3 additions & 3 deletions Doc/c-api/gcsupport.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,23 +194,23 @@ garbage collection runs.

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

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

.. versionchanged:: 3.10


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

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

.. versionchanged:: 3.10


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

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

.. versionchanged:: 3.10
0