diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2017-10-17 20:13:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-17 20:13:13 (GMT) |
commit | 355393e7438deeab4aeec3fcffea65e8cada083b (patch) | |
tree | 3e3f642b9a6bdc2d5051706f3bc8e8183e888473 | |
parent | 7b4ba62e388474e811268322b47f80d464933541 (diff) | |
download | cpython-355393e7438deeab4aeec3fcffea65e8cada083b.zip cpython-355393e7438deeab4aeec3fcffea65e8cada083b.tar.gz cpython-355393e7438deeab4aeec3fcffea65e8cada083b.tar.bz2 |
[2.7] bpo-31733, bpo-31692: Document 2 new env vars in What's New in Python 2.7 (GH-4019)
bpo-31733, bpo-31692: Document the new PYTHONSHOWREFCOUNT and
PYTHONSHOWALLOCCOUNT environment variables.
-rw-r--r-- | Doc/whatsnew/2.7.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Doc/whatsnew/2.7.rst b/Doc/whatsnew/2.7.rst index 28a8d4b..1857aa4 100644 --- a/Doc/whatsnew/2.7.rst +++ b/Doc/whatsnew/2.7.rst @@ -2540,6 +2540,21 @@ exemption allowing new ``-3`` warnings to be added in any Python 2.7 maintenance release. +Two new environment variables for debug mode +-------------------------------------------- + +In debug mode, the ``[xxx refs]`` statistic is not written by default, the +:envvar:`PYTHONSHOWREFCOUNT` environment variable now must also be set. +(Contributed by Victor Stinner; :issue:`31733`.) + +When Python is compiled with ``COUNT_ALLOC`` defined, allocation counts are no +longer dumped by default anymore: the :envvar:`PYTHONSHOWALLOCCOUNT` environment +variable must now also be set. Moreover, allocation counts are now dumped into +stderr, rather than stdout. (Contributed by Victor Stinner; :issue:`31692`.) + +.. versionadded:: 2.7.15 + + PEP 434: IDLE Enhancement Exception for All Branches ---------------------------------------------------- |