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.

Author vstinner
Recipients barry, vstinner
Date 2017-11-15.01:41:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510710093.97.0.213398074469.issue32030@psf.upfronthosting.co.za>
In-reply-to
Content
I rewrote Py_Main() to prepare the code to be able to implement my "-X dev" idea:
https://mail.python.org/pipermail/python-dev//2017-November/150514.html

The problem is that currently the code parsing command line options and the code setting the memory allocator (handle PYTHONMALLOC environment variable) are mixed, it's not possible to touch this code.

I had similar technical issues when trying to implement properly my PEP 540 idea (Add a new UTF-8 mode): it's hard to change the Python filesystem encoding to UTF-8 after parsing command line arguments, since the current code to parse command line arguments already rely on the Python filesystem encoding and other parts of the Python runtime like the memory allocators.

If I implemented my PR correctly, it should become much more simpler to control PYTHONMALLOC and the filesystem encoding from the command line: from an -X option.
History
Date User Action Args
2017-11-15 01:41:34vstinnersetrecipients: + vstinner, barry
2017-11-15 01:41:33vstinnersetmessageid: <1510710093.97.0.213398074469.issue32030@psf.upfronthosting.co.za>
2017-11-15 01:41:33vstinnerlinkissue32030 messages
2017-11-15 01:41:33vstinnercreate