]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36142: PYTHONMALLOC overrides PYTHONDEV (GH-12191)
authorVictor Stinner <vstinner@redhat.com>
Wed, 6 Mar 2019 11:51:53 +0000 (12:51 +0100)
committerGitHub <noreply@github.com>
Wed, 6 Mar 2019 11:51:53 +0000 (12:51 +0100)
commit25d13f37aa6743282d0b8b4df687ff89999964b2
tree88b7e7e0834b9c9d1ca13220d83bc6eb845137ea
parent01e0f439f5009f37b95ab516e91906fcc7fcb8c3
bpo-36142: PYTHONMALLOC overrides PYTHONDEV (GH-12191)

bpo-34247, bpo-36142: The PYTHONMALLOC environment variable has the
priority over PYTHONDEV env var and "-X dev" command line option.
For example, PYTHONMALLOC=malloc PYTHONDEVMODE=1 sets the memory
allocators to "malloc" (and not to "debug").

Add an unit test.
Lib/test/test_embed.py
Programs/_testembed.c
Python/preconfig.c