[issue32043] Add a new -X dev option: "developer mode"

2017-11-20 Thread STINNER Victor

STINNER Victor  added the comment:

While the discussion is not done, I close this issue to focus on other more 
specific issues.

I completed the documentation and fixed warnings filters (bpo-32089). The 
option now also enables asyncio debug mode (bpo-32047).

It was proposed to add an environment variable to enable the developer mode: 
see bpo-32101 ("Add PYTHONDEVMODE=1 to enable the developer mode").

Note: I also fixed subprocess._args_from_interpreter_flags: bpo-32094.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32043] Add a new -X dev option: "developer mode"

2017-11-20 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset bc9b6e29cb52f8da15613f9174af2f603131b56d by Victor Stinner in 
branch 'master':
bpo-32043: Rephrase -X dev documentation (#4478)
https://github.com/python/cpython/commit/bc9b6e29cb52f8da15613f9174af2f603131b56d


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32043] Add a new -X dev option: "developer mode"

2017-11-20 Thread STINNER Victor

STINNER Victor  added the comment:

I created bpo-32101: Add PYTHONDEVMODE=1 to enable the developer mode.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32043] Add a new -X dev option: "developer mode"

2017-11-20 Thread STINNER Victor

Change by STINNER Victor :


--
pull_requests: +4415

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32043] Add a new -X dev option: "developer mode"

2017-11-16 Thread STINNER Victor

STINNER Victor  added the comment:

Antoine Pitrou asked me to document the performance and memory overhead of -X 
dev:

https://mail.python.org/pipermail/python-dev/2017-November/150578.html

For example, I measured an increase of +50% on the peak memory usage (measured 
by tracemalloc) when running test_os.

Antoine proposed:

"""Currently, developer mode adds negligible CPU time overhead, but can
increase memory consumption significantly if many small objects are
allocated.  This is subject to change in the future."""

https://mail.python.org/pipermail/python-dev/2017-November/150579.html

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32043] Add a new -X dev option: "developer mode"

2017-11-16 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset ccb0442a338066bf40fe417455e5a374e5238afb by Victor Stinner in 
branch 'master':
bpo-32043: New "developer mode": "-X dev" option (#4413)
https://github.com/python/cpython/commit/ccb0442a338066bf40fe417455e5a374e5238afb


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32043] Add a new -X dev option: "developer mode"

2017-11-15 Thread STINNER Victor

STINNER Victor  added the comment:

I rewrote Py_Main() in bpo-32030 to make it very easy to implement this new 
feature.

I wrote PR 4413 to implement -X dev.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32043] Add a new -X dev option: "developer mode"

2017-11-15 Thread STINNER Victor

Change by STINNER Victor :


--
keywords: +patch
pull_requests: +4363
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32043] Add a new -X dev option: "developer mode"

2017-11-15 Thread Barry A. Warsaw

Change by Barry A. Warsaw :


--
nosy: +barry

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32043] Add a new -X dev option: "developer mode"

2017-11-15 Thread STINNER Victor

New submission from STINNER Victor :

I propose to add a new "developer mode": a new "-X dev" command line option.

In short:
   python3 -X dev script.py
behaves as:
   PYTHONMALLOC=debug python3 -W default -X faulthandler script.py

For the rationale, please see:
https://mail.python.org/pipermail/python-dev/2017-November/150514.html

--
components: Interpreter Core
messages: 306330
nosy: haypo
priority: normal
severity: normal
status: open
title: Add a new -X dev option: "developer mode"
type: enhancement
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com