classification
Title: Py_FinalizeEx() - Bugs & caveats - Add info that NumPy and Pandas don't support reinitialization
Type: enhancement Stage:
Components: Documentation Versions: Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, jcmuel
Priority: normal Keywords:

Created on 2018-09-13 18:25 by jcmuel, last changed 2018-09-13 18:25 by jcmuel.

Messages (1)
msg325275 - (view) Author: Johannes M. (jcmuel) Date: 2018-09-13 18:25
Since about a decade, it's a know problem that NumPy and Pandas initialization function crashes on reinitialization after a call to Py_Finalize() + Py_Initialize().

[https://github.com/numpy/numpy/issues/8097]
[https://github.com/numpy/numpy/issues/11925]

It seems to be unlikely that this problem gets fixed soon. Due to the popularity of the modules, it would be good to add this information to the documentation of Py_FinalizeEx(), such that developers, who are planning to embed Python get this information already at the moment when they read the documentation.

I would suggest to change the following sentence:

    Some extensions may not work properly if their
    initialization routine is called more than once;

to

    Some extensions, like NumPy and Pandas, may not work properly if their
    initialization routine is called more than once;
History
Date User Action Args
2018-09-13 18:25:52jcmuelcreate