This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jean-Didier
Recipients Jean-Didier
Date 2019-11-17.11:52:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573991525.07.0.835950836621.issue38829@roundup.psfhosted.org>
In-reply-to
Content
Hello, 
when using an embedded python interpreter in a C++ program, which itself uses MPI, the embedded script's error messages are not flushed properly. 
(see the whole discussion in this StackOverflow : https://stackoverflow.com/questions/29352485/python-print-not-working-when-embedded-into-mpi-program/49076389#49076389).

The current preferred solution involves adding a few calls to flush_io in the C++. 
However, flush_io is a `static` function in `pythonrun.c`, and is not visible in the C-API.

Would it be possible to remove its static attribute, and add a reference to it in pythonrun.h?
Or maybe there is another method to flush IO from the C-API?
History
Date User Action Args
2019-11-17 11:52:05Jean-Didiersetrecipients: + Jean-Didier
2019-11-17 11:52:05Jean-Didiersetmessageid: <1573991525.07.0.835950836621.issue38829@roundup.psfhosted.org>
2019-11-17 11:52:05Jean-Didierlinkissue38829 messages
2019-11-17 11:52:04Jean-Didiercreate