Author vstinner
Recipients Decorater, eric.snow, ncoghlan, serhiy.storchaka, vstinner
Date 2017-11-22.09:33:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511343193.76.0.213398074469.issue32096@psf.upfronthosting.co.za>
In-reply-to
Content
> 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?
History
Date User Action Args
2017-11-22 09:33:13vstinnersetrecipients: + vstinner, ncoghlan, eric.snow, serhiy.storchaka, Decorater
2017-11-22 09:33:13vstinnersetmessageid: <1511343193.76.0.213398074469.issue32096@psf.upfronthosting.co.za>
2017-11-22 09:33:13vstinnerlinkissue32096 messages
2017-11-22 09:33:13vstinnercreate