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 docs@python, ncoghlan, pgacv2, r.david.murray, terry.reedy, vstinner
Date 2019-06-02.21:59:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559512767.7.0.85770304316.issue32573@roundup.psfhosted.org>
In-reply-to
Content
The issue has been fixed in Python 3.8. See PEP 587 and http://docs.python.org/dev/c-api/init_config.html for the larger scope.

For Python 3.7, the fix is trivial: don't add the following 2 lines in your application:

if not hasattr(sys, 'argv'):
    sys.argv = ['']

Python 3.7 Release Manager, Ned Deily, was opposed to change the behavior in a minor release:
https://github.com/python/cpython/pull/13553#issuecomment-496768319
History
Date User Action Args
2019-06-02 21:59:27vstinnersetrecipients: + vstinner, terry.reedy, ncoghlan, r.david.murray, docs@python, pgacv2
2019-06-02 21:59:27vstinnersetmessageid: <1559512767.7.0.85770304316.issue32573@roundup.psfhosted.org>
2019-06-02 21:59:27vstinnerlinkissue32573 messages
2019-06-02 21:59:27vstinnercreate