@@ -501,17 +501,6 @@ are not tier 3 supported platforms, but will have best-effort support.
501
501
.. seealso :: :pep:`730`, :pep:`738`
502
502
503
503
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
-
515
504
Other Language Changes
516
505
======================
517
506
@@ -908,36 +897,6 @@ fractions
908
897
(Contributed by Mark Dickinson in :gh: `111320 `.)
909
898
910
899
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
-
941
900
glob
942
901
----
943
902
@@ -1502,11 +1461,6 @@ zipimport
1502
1461
Optimizations
1503
1462
=============
1504
1463
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
-
1510
1464
* Several standard library modules have had
1511
1465
their import times significantly improved.
1512
1466
For example, the import time of the :mod: `typing ` module
@@ -2619,13 +2573,6 @@ Changes in the Python API
2619
2573
Wrap it in :func: `staticmethod ` if you want to preserve the old behavior.
2620
2574
(Contributed by Serhiy Storchaka in :gh: `121027 `.)
2621
2575
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
-
2629
2576
* An :exc: `OSError ` is now raised by :func: `getpass.getuser `
2630
2577
for any failure to retrieve a username,
2631
2578
instead of :exc: `ImportError ` on non-Unix platforms
0 commit comments