2016-03-09 18:54 GMT+01:00 Brett Cannon email@example.com:
The main advantage of this variable is that you don't have to recompile Python in debug mode to benefit of these checks.
I just wanted to say this all sounds awesome! Thanks for all the hard work on making our memory management story easier to work with, Victor.
You're welcome. I pushed my patch adding PYTHONMALLOC environment variable: https://docs.python.org/dev/whatsnew/3.6.html#pythonmalloc-environment-varia...
Please test PYTHONMALLOC=debug and PYTHONMALLOC=malloc with your favorite application.
I also adjusted code (like code handling PYTHONMALLOCSTATS env var) to be able to use debug checks in all cases. For example, debug hooks are now also installed by default when Python is configured in debug mode without pymalloc support.