[issue34228] Allow PYTHONTRACEMALLOC=0 and -X tracemalloc=0 to disable explicitly tracemalloc

2018-07-26 Thread STINNER Victor
STINNER Victor added the comment: I don't think that it's worth it to backport this change. It's really a corner case and it's almsot a bugfix. I mostly need it for testing _PyCoreConfig and Python initialisation. -- resolution: -> fixed stage: patch review -> resolved status: open

[issue34228] Allow PYTHONTRACEMALLOC=0 and -X tracemalloc=0 to disable explicitly tracemalloc

2018-07-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 60b04c9f6fb87522a62ab6b95db9f8a09aef42d4 by Victor Stinner in branch 'master': bpo-34228: Allow PYTHONTRACEMALLOC=0 (GH-8467) https://github.com/python/cpython/commit/60b04c9f6fb87522a62ab6b95db9f8a09aef42d4 --

[issue34228] Allow PYTHONTRACEMALLOC=0 and -X tracemalloc=0 to disable explicitly tracemalloc

2018-07-25 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +7991 stage: -> patch review ___ Python tracker ___ ___

[issue34228] Allow PYTHONTRACEMALLOC=0 and -X tracemalloc=0 to disable explicitly tracemalloc

2018-07-25 Thread STINNER Victor
New submission from STINNER Victor : Currently, -X tracemalloc=0 command line option is reject as an invalid value. I would like to allow to explicitly disable tracemalloc. That's useful to ignore the PYTHONTRACEMALLOC environment variable: "PYTHONTRACEMALLOC=1 python3 -X tracemalloc=0"