Nick Coghlan <ncogh...@gmail.com> added the comment:
At the very least, I think this calls for a documentation change, such that we 
make it clear that:

1. The expected calling pattern is to call Py_Main() *instead of* 
Py_Initialize(), since Py_Main() calls Py_Initialize().

2. If you do call Py_Initialize() first, then exactly which settings that 
Py_Main() will read from the environment and apply is version dependent.

So I'll put together a docs patch that's valid for 3.6+, and then we can decide 
where to take 3.7 and 3.8 from an implementation perspective after that.

Currently, I'm thinking that for 3.7, our goal should specifically be "fake the 
3.6 behaviour well enough to get fontforge working again" (so it will mostly be 
Fedora that drives what that 3.7.1 change looks like), while for 3.8 we should 
aim to deprecate that code path, and instead offer a better building block API 
for folks that want to implement their own Py_Main() variant.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34008>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to