summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.7.rst
diff options
context:
space:
mode:
authorJesse-Bakker <jessebakker00@gmail.com>2017-11-29 23:05:07 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-11-29 23:05:07 (GMT)
commit706e10b186992e086e661a62d2c8ec9588525b31 (patch)
tree6ef28e2e18a1183757d3a31236c2b5e8b4434254 /Doc/whatsnew/3.7.rst
parent859f7ce7a49f8bd6309748c05e460c10f6a433ed (diff)
downloadcpython-706e10b186992e086e661a62d2c8ec9588525b31.zip
cpython-706e10b186992e086e661a62d2c8ec9588525b31.tar.gz
cpython-706e10b186992e086e661a62d2c8ec9588525b31.tar.bz2
bpo-32121: Add most_recent_first parameter to tracemalloc.Traceback.format (#4534)
* Add most_recent_first parameter to tracemalloc.Traceback.format to allow reversing the order of the frames in the output * Reversed default sorting of tracemalloc.Traceback frames * Allowed negative limit, truncating from the other side.
Diffstat (limited to 'Doc/whatsnew/3.7.rst')
-rw-r--r--Doc/whatsnew/3.7.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index e4600fe..5c00159 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -751,6 +751,10 @@ Changes in the Python API
avoid a warning escape them with a backslash.
(Contributed by Serhiy Storchaka in :issue:`30349`.)
+* :class:`tracemalloc.Traceback` frames are now sorted from oldest to most
+ recent to be more consistent with :mod:`traceback`.
+ (Contributed by Jesse Bakker in :issue:`32121`.)
+
.. _Unicode Technical Standard #18: https://unicode.org/reports/tr18/