Skip to content

Commit 39de8e4

Browse files
authored
bpo-40630: adjust tracemalloc.reset_peak docs for backport to 3.9 (GH-20546)
1 parent 06e3a27 commit 39de8e4

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

Doc/library/tracemalloc.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ Functions
345345

346346
See also :func:`get_traced_memory`.
347347

348-
.. versionadded:: 3.10
348+
.. versionadded:: 3.9
349349

350350

351351
.. function:: get_tracemalloc_memory()

Doc/whatsnew/3.10.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,6 @@ New Modules
9595
Improved Modules
9696
================
9797

98-
tracemalloc
99-
-----------
100-
101-
Added :func:`tracemalloc.reset_peak` to set the peak size of traced memory
102-
blocks to the current size, to measure the peak of specific pieces of code.
103-
(Contributed by Huon Wilson in :issue:`40630`.)
104-
10598
Optimizations
10699
=============
107100

Doc/whatsnew/3.9.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,12 @@ Previously, :attr:`sys.stderr` was block-buffered when non-interactive. Now
562562
``stderr`` defaults to always being line-buffered.
563563
(Contributed by Jendrik Seipp in :issue:`13601`.)
564564

565+
tracemalloc
566+
-----------
567+
568+
Added :func:`tracemalloc.reset_peak` to set the peak size of traced memory
569+
blocks to the current size, to measure the peak of specific pieces of code.
570+
(Contributed by Huon Wilson in :issue:`40630`.)
565571

566572
typing
567573
------

Misc/NEWS.d/next/Library/2020-05-15-13-40-15.bpo-40630.YXEX_M.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)