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 terry.reedy
Recipients docs@python, gvanrossum, jaraco, terry.reedy
Date 2020-08-30.18:10:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598811028.65.0.839215357607.issue41615@roundup.psfhosted.org>
In-reply-to
Content
I had the same idea late last night, though after 20 years, I have forgotten how to spell "['']" in C.  (Is some sort of allocation or declaration required?).

In the doc, change "It does not set sys.argv; use PySys_SetArgvEx() for that." to "It initializes sys.argv to ['']; use PySys_SetArgvEx() to modify it or change sys.path."

"This is a no-op when called for a second time (without calling Py_FinalizeEx() first)." needs to be respected.
History
Date User Action Args
2020-08-30 18:10:28terry.reedysetrecipients: + terry.reedy, gvanrossum, jaraco, docs@python
2020-08-30 18:10:28terry.reedysetmessageid: <1598811028.65.0.839215357607.issue41615@roundup.psfhosted.org>
2020-08-30 18:10:28terry.reedylinkissue41615 messages
2020-08-30 18:10:28terry.reedycreate