]> granicus.if.org Git - python/commitdiff
[2.7] bpo-31733, bpo-31692: Document 2 new env vars in What's New in Python 2.7 ...
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 17 Oct 2017 20:13:13 +0000 (13:13 -0700)
committerGitHub <noreply@github.com>
Tue, 17 Oct 2017 20:13:13 +0000 (13:13 -0700)
bpo-31733, bpo-31692: Document the new PYTHONSHOWREFCOUNT and
PYTHONSHOWALLOCCOUNT environment variables.

Doc/whatsnew/2.7.rst

index 28a8d4be47b0dd66ad067c834851113421ce5ee3..1857aa4e8f32302d71c743fdd82ac277b36f9eeb 100644 (file)
@@ -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
 ----------------------------------------------------