This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add a developer mode: -X dev command line option
Type: enhancement Stage: resolved
Components: Versions: Python 3.6
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: ronaldoussoren, vstinner
Priority: normal Keywords: patch

Created on 2016-03-30 08:20 by vstinner, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
dev_mode.patch vstinner, 2016-03-30 08:20 review
Messages (3)
msg262655 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-03-30 08:20
Attached patch implements the idea proposed on the python-ideas mailing list:
https://mail.python.org/pipermail/python-ideas/2016-March/039314.html

The patch is a proof-of-concept. The code still contains FIXME.
msg262659 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2016-03-30 10:44
Why does this patch execv() the interpreter to set options? I'd expect it to be possible to get the same result by updating the argument parsing code in Py_Main.
msg262742 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-04-01 14:08
> Why does this patch execv() the interpreter to set options? I'd expect it to be possible to get the same result by updating the argument parsing code in Py_Main.

It's to set PYTHONMALLOC env var which must be set before Py_Main() is called.

Since I got negative feedback on python-ideas, I close this issue and will investigate the documentation option.
History
Date User Action Args
2022-04-11 14:58:29adminsetgithub: 70857
2016-04-01 14:17:52SilentGhostsetresolution: fixed -> rejected
stage: resolved
2016-04-01 14:08:18vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg262742
2016-03-30 10:44:23ronaldoussorensetnosy: + ronaldoussoren
messages: + msg262659
2016-03-30 08:20:14vstinnercreate