cpython: 691fba640266 (original) (raw)

Mercurial > cpython

changeset 100605:691fba640266

Issue #26567: enhance ResourceWarning example [#26567]

Victor Stinner victor.stinner@gmail.com
date Sat, 19 Mar 2016 10:33:25 +0100
parents 543639cdfdb9
children 71c55c89d4f1
files Doc/whatsnew/3.6.rst
diffstat 1 files changed, 12 insertions(+), 9 deletions(-)[+] [-] Doc/whatsnew/3.6.rst 21

line wrap: on

line diff

--- a/Doc/whatsnew/3.6.rst +++ b/Doc/whatsnew/3.6.rst @@ -272,24 +272,27 @@ used to try to retrieve the traceback wh Example with the script example.py::

+ def func():

Output of the command python3.6 -Wd -X tracemalloc=5 example.py::

The "Object allocated at" traceback is new and only displayed if -:mod:tracemalloc is tracing Python memory allocations. +:mod:tracemalloc is tracing Python memory allocations and if the +:mod:warnings was already imported. zipfile