@@ -498,30 +498,6 @@ are not tier 3 supported platforms, but will have best-effort support.
498
498
.. seealso :: :pep:`730`, :pep:`738`
499
499
500
500
501
- .. _whatsnew313-incremental-gc :
502
-
503
- Incremental garbage collection
504
- ------------------------------
505
-
506
- The cycle garbage collector is now incremental.
507
- This means that maximum pause times are reduced
508
- by an order of magnitude or more for larger heaps.
509
-
510
- There are now only two generations: young and old.
511
- When :func: `gc.collect ` is not called directly, the
512
- GC is invoked a little less frequently. When invoked, it
513
- collects the young generation and an increment of the
514
- old generation, instead of collecting one or more generations.
515
-
516
- The behavior of :func: `!gc.collect ` changes slightly:
517
-
518
- * ``gc.collect(1) ``: Performs an increment of garbage collection,
519
- rather than collecting generation 1.
520
- * Other calls to :func: `!gc.collect ` are unchanged.
521
-
522
- (Contributed by Mark Shannon in :gh: `108362 `.)
523
-
524
-
525
501
Other Language Changes
526
502
======================
527
503
@@ -918,36 +894,6 @@ fractions
918
894
(Contributed by Mark Dickinson in :gh: `111320 `.)
919
895
920
896
921
- gc
922
- --
923
-
924
- The cyclic garbage collector is now incremental,
925
- which changes the meaning of the results of
926
- :meth: `~gc.get_threshold ` and :meth: `~gc.set_threshold `
927
- as well as :meth: `~gc.get_count ` and :meth: `~gc.get_stats `.
928
-
929
- * For backwards compatibility, :meth: `~gc.get_threshold ` continues to return
930
- a three-item tuple.
931
- The first value is the threshold for young collections, as before;
932
- the second value determines the rate at which the old collection is scanned
933
- (the default is 10, and higher values mean that the old collection
934
- is scanned more slowly).
935
- The third value is meaningless and is always zero.
936
-
937
- * :meth: `~gc.set_threshold ` ignores any items after the second.
938
-
939
- * :meth: `~gc.get_count ` and :meth: `~gc.get_stats ` continue to return
940
- the same format of results.
941
- The only difference is that instead of the results referring to
942
- the young, aging and old generations,
943
- the results refer to the young generation
944
- and the aging and collecting spaces of the old generation.
945
-
946
- In summary, code that attempted to manipulate the behavior of the cycle GC
947
- may not work exactly as intended, but it is very unlikely to be harmful.
948
- All other code will work just fine.
949
-
950
-
951
897
glob
952
898
----
953
899
@@ -1512,11 +1458,6 @@ zipimport
1512
1458
Optimizations
1513
1459
=============
1514
1460
1515
- * The new :ref: `incremental garbage collector <whatsnew313-incremental-gc >`
1516
- means that maximum pause times are reduced
1517
- by an order of magnitude or more for larger heaps.
1518
- (Contributed by Mark Shannon in :gh: `108362 `.)
1519
-
1520
1461
* Several standard library modules have had
1521
1462
their import times significantly improved.
1522
1463
For example, the import time of the :mod: `typing ` module
@@ -2629,13 +2570,6 @@ Changes in the Python API
2629
2570
Wrap it in :func: `staticmethod ` if you want to preserve the old behavior.
2630
2571
(Contributed by Serhiy Storchaka in :gh: `121027 `.)
2631
2572
2632
- * The :ref: `garbage collector is now incremental <whatsnew313-incremental-gc >`,
2633
- which means that the behavior of :func: `gc.collect ` changes slightly:
2634
-
2635
- * ``gc.collect(1) ``: Performs an increment of garbage collection,
2636
- rather than collecting generation 1.
2637
- * Other calls to :func: `!gc.collect ` are unchanged.
2638
-
2639
2573
* An :exc: `OSError ` is now raised by :func: `getpass.getuser `
2640
2574
for any failure to retrieve a username,
2641
2575
instead of :exc: `ImportError ` on non-Unix platforms
0 commit comments