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 <>
The issue has been fixed in Python 3.8. See PEP 587 and 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:
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: <>
2019-06-02 21:59:27vstinnerlinkissue32573 messages
2019-06-02 21:59:27vstinnercreate