Message306708
> As an alternative to that, we could also deprecate using any of those functions before initializing the runtime. Instead of calling them, you would set the relevant info on the runtime "config" struct that you pass to the replacement for PyInitialize().
Currently, _PyCoreConfig is not complete: you cannot pass PYTHONPATH or PYTHONHOME. I'm working on patches to implement that.
Moreover, there is the question how to decode a bytes path (for PYTHONPATH) into a wchar_t* string.
Disallow calling Py_DecodeLocale() before Py_Initialize(): ok, but which alternative do you propose to decode OS data? |
|
Date |
User |
Action |
Args |
2017-11-22 09:33:13 | vstinner | set | recipients:
+ vstinner, ncoghlan, eric.snow, serhiy.storchaka, Decorater |
2017-11-22 09:33:13 | vstinner | set | messageid: <1511343193.76.0.213398074469.issue32096@psf.upfronthosting.co.za> |
2017-11-22 09:33:13 | vstinner | link | issue32096 messages |
2017-11-22 09:33:13 | vstinner | create | |
|