Skip to content
Merged
Show file tree
Hide file tree
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
bpo-28254: Improve markup and add a What's New entry.
  • Loading branch information
scoder committed Apr 28, 2021
commit bfbadb90eeac3d6ba5c51f6d2bfe41bfa495ec37
7 changes: 7 additions & 0 deletions Doc/whatsnew/3.10.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,13 @@ New Features
singleton or the ``False`` singleton.
(Contributed by Victor Stinner in :issue:`43753`.)

* Add new functions to quickly control the garbage collector from C code:
:c:func:`PyGC_Enable()`,
:c:func:`PyGC_Disable()`,
:c:func:`PyGC_IsEnabled()`.
Comment thread
scoder marked this conversation as resolved.
This previously required importing the :mod:`gc` module and calling
Python functions in it, which is cumbersome from C code.
Comment thread
pablogsal marked this conversation as resolved.
Outdated

Porting to Python 3.10
----------------------

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Add new C-API functions to control the state of the garbage collector:
Comment thread
scoder marked this conversation as resolved.
PyGC_Enable(), PyGC_Disable(), PyGC_IsEnabled(), corresponding to the
functions in the ``gc`` module.
:c:func:`PyGC_Enable()`, :c:func:`PyGC_Disable()`, :c:func:`PyGC_IsEnabled()`,
corresponding to the functions in the :mod:`gc` module.