Author ncoghlan
Recipients ncoghlan, ned.deily, vstinner
Date 2018-09-11.14:38:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1536676731.95.0.0269046726804.issue34589@psf.upfronthosting.co.za>
In-reply-to
Content
FWIW, this is also why I don't want PEP 432 to expose any wstr fields in the configuration settings: it means embedding applications have to figure out which encoding Python is expecting to be used for those fields.

Everything should be much cleaner if the public API requires those settings to be provided as Py_Unicode objects, and the core configuration step takes care of getting the C API to the point where the embedding application can create Py_Unicode objects for passing to later steps.

The fact that CPython itself currently uses wstr to configure these settings should be considered a legacy implementation detail that we do our best to hide from the public API.
History
Date User Action Args
2018-09-11 14:38:51ncoghlansetrecipients: + ncoghlan, vstinner, ned.deily
2018-09-11 14:38:51ncoghlansetmessageid: <1536676731.95.0.0269046726804.issue34589@psf.upfronthosting.co.za>
2018-09-11 14:38:51ncoghlanlinkissue34589 messages
2018-09-11 14:38:51ncoghlancreate