Skip to content

Commit 355393e

Browse files
authored
[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.
1 parent 7b4ba62 commit 355393e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Doc/whatsnew/2.7.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2540,6 +2540,21 @@ exemption allowing new ``-3`` warnings to be added in any Python 2.7
25402540
maintenance release.
25412541

25422542

2543+
Two new environment variables for debug mode
2544+
--------------------------------------------
2545+
2546+
In debug mode, the ``[xxx refs]`` statistic is not written by default, the
2547+
:envvar:`PYTHONSHOWREFCOUNT` environment variable now must also be set.
2548+
(Contributed by Victor Stinner; :issue:`31733`.)
2549+
2550+
When Python is compiled with ``COUNT_ALLOC`` defined, allocation counts are no
2551+
longer dumped by default anymore: the :envvar:`PYTHONSHOWALLOCCOUNT` environment
2552+
variable must now also be set. Moreover, allocation counts are now dumped into
2553+
stderr, rather than stdout. (Contributed by Victor Stinner; :issue:`31692`.)
2554+
2555+
.. versionadded:: 2.7.15
2556+
2557+
25432558
PEP 434: IDLE Enhancement Exception for All Branches
25442559
----------------------------------------------------
25452560

0 commit comments

Comments
 (0)