Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d7acbbd

Browse filesBrowse files
committed
Remove references to the incremental garbage collector in What's New
1 parent 1ba3555 commit d7acbbd
Copy full SHA for d7acbbd

File tree

Expand file treeCollapse file tree

2 files changed

+1
-54
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-54
lines changed

‎Doc/library/gc.rst

Copy file name to clipboardExpand all lines: Doc/library/gc.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The :mod:`gc` module provides the following functions:
4242

4343
With no arguments, run a full collection. The optional argument *generation*
4444
may be an integer specifying which generation to collect (from 0 to 2). A
45-
:exc:`ValueError` is raised if the generation number is invalid. The sum of
45+
:exc:`ValueError` is raised if the generation number is invalid. The sum of
4646
collected objects and uncollectable objects is returned.
4747

4848
The free lists maintained for a number of built-in types are cleared

‎Doc/whatsnew/3.13.rst

Copy file name to clipboardExpand all lines: Doc/whatsnew/3.13.rst
-53Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -501,17 +501,6 @@ are not tier 3 supported platforms, but will have best-effort support.
501501
.. seealso:: :pep:`730`, :pep:`738`
502502

503503

504-
.. _whatsnew313-incremental-gc:
505-
506-
Incremental garbage collection
507-
------------------------------
508-
509-
The cycle garbage collector is now incremental.
510-
This means that maximum pause times are reduced
511-
by an order of magnitude or more for larger heaps.
512-
(Contributed by Mark Shannon in :gh:`108362`.)
513-
514-
515504
Other Language Changes
516505
======================
517506

@@ -908,36 +897,6 @@ fractions
908897
(Contributed by Mark Dickinson in :gh:`111320`.)
909898

910899

911-
gc
912-
--
913-
914-
The cyclic garbage collector is now incremental,
915-
which changes the meaning of the results of
916-
:meth:`~gc.get_threshold` and :meth:`~gc.set_threshold`
917-
as well as :meth:`~gc.get_count` and :meth:`~gc.get_stats`.
918-
919-
* For backwards compatibility, :meth:`~gc.get_threshold` continues to return
920-
a three-item tuple.
921-
The first value is the threshold for young collections, as before;
922-
the second value determines the rate at which the old collection is scanned
923-
(the default is 10, and higher values mean that the old collection
924-
is scanned more slowly).
925-
The third value is meaningless and is always zero.
926-
927-
* :meth:`~gc.set_threshold` ignores any items after the second.
928-
929-
* :meth:`~gc.get_count` and :meth:`~gc.get_stats` continue to return
930-
the same format of results.
931-
The only difference is that instead of the results referring to
932-
the young, aging and old generations,
933-
the results refer to the young generation
934-
and the aging and collecting spaces of the old generation.
935-
936-
In summary, code that attempted to manipulate the behavior of the cycle GC
937-
may not work exactly as intended, but it is very unlikely to be harmful.
938-
All other code will work just fine.
939-
940-
941900
glob
942901
----
943902

@@ -1502,11 +1461,6 @@ zipimport
15021461
Optimizations
15031462
=============
15041463

1505-
* The new :ref:`incremental garbage collector <whatsnew313-incremental-gc>`
1506-
means that maximum pause times are reduced
1507-
by an order of magnitude or more for larger heaps.
1508-
(Contributed by Mark Shannon in :gh:`108362`.)
1509-
15101464
* Several standard library modules have had
15111465
their import times significantly improved.
15121466
For example, the import time of the :mod:`typing` module
@@ -2619,13 +2573,6 @@ Changes in the Python API
26192573
Wrap it in :func:`staticmethod` if you want to preserve the old behavior.
26202574
(Contributed by Serhiy Storchaka in :gh:`121027`.)
26212575

2622-
* The :ref:`garbage collector is now incremental <whatsnew313-incremental-gc>`,
2623-
which means that the behavior of :func:`gc.collect` changes slightly:
2624-
2625-
* ``gc.collect(1)``: Performs an increment of garbage collection,
2626-
rather than collecting generation 1.
2627-
* Other calls to :func:`!gc.collect` are unchanged.
2628-
26292576
* An :exc:`OSError` is now raised by :func:`getpass.getuser`
26302577
for any failure to retrieve a username,
26312578
instead of :exc:`ImportError` on non-Unix platforms

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.