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.00:49:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598748546.71.0.867060443676.issue41615@roundup.psfhosted.org>
In-reply-to
Content
I just noticed that Py_Initialize "does not set sys.argv; use PySys_SetArgvEx() for that."
https://docs.python.org/3/c-api/init.html#c.Py_Initialize
https://docs.python.org/3/c-api/init.html#c.PySys_SetArgvEx
void PySys_SetArgvEx(int argc, wchar_t **argv, int updatepath)

The latter treats failure to initialize sys.argv as fatal.  It suggests that embedders might want updatepath = 0.
History
Date User Action Args
2020-08-30 00:49:06terry.reedysetrecipients: + terry.reedy, gvanrossum, jaraco, docs@python
2020-08-30 00:49:06terry.reedysetmessageid: <1598748546.71.0.867060443676.issue41615@roundup.psfhosted.org>
2020-08-30 00:49:06terry.reedylinkissue41615 messages
2020-08-30 00:49:06terry.reedycreate