[Python-Dev] Add a developer mode to Python: -X dev command line option
Antoine Pitrou
solipsis at pitrou.net
Mon Nov 13 11:40:14 EST 2017
On Mon, 13 Nov 2017 17:08:06 +0100
Victor Stinner <victor.stinner at gmail.com> wrote:
> Hi,
>
> The discussion on DeprecationWarning reminded me my old idea of a
> "development mode" for CPython: -X dev. Since Brett likes it, I post
> it on python-dev. Last year, I posted this idea to python-ideas but my
> idea was rejected:
>
> https://mail.python.org/pipermail/python-ideas/2016-March/039314.html
>
> In short:
> python3.7 -X dev script.py
> behaves as:
> PYTHONMALLOC=debug python3.7 -Wd -b -X faulthandler script.py
I would personally not add `-b` in those options. I think it was
useful while porting stuff to 3.x, but not so much these days.
Regards
Antoine.
More information about the Python-Dev
mailing list