Terry J. Reedy <tjre...@udel.edu> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41615> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com