]> granicus.if.org Git - python/commit
bpo-32043: New "developer mode": "-X dev" option (#4413)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 16 Nov 2017 11:20:31 +0000 (03:20 -0800)
committerGitHub <noreply@github.com>
Thu, 16 Nov 2017 11:20:31 +0000 (03:20 -0800)
commitccb0442a338066bf40fe417455e5a374e5238afb
tree155b84289b5136d624ebd3577902ee1435a6b4e1
parent05cb728d68a278d11466f9a6c8258d914135c96c
bpo-32043: New "developer mode": "-X dev" option (#4413)

Add a new "developer mode": new "-X dev" command line option to
enable debug checks at runtime.

Changes:

* Add unit tests for -X dev
* test_cmd_line: replace test.support with support.
* Fix _PyRuntimeState_Fini(): Use the same memory allocator
   than _PyRuntimeState_Init().
* Fix _PyMem_GetDefaultRawAllocator()
Doc/using/cmdline.rst
Doc/whatsnew/3.7.rst
Lib/test/test_cmd_line.py
Misc/NEWS.d/next/Core and Builtins/2017-11-16-03-44-08.bpo-32043.AAzwpZ.rst [new file with mode: 0644]
Modules/main.c
Objects/obmalloc.c
Python/pystate.c