Message356801
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? |
|
Date |
User |
Action |
Args |
2019-11-17 11:52:05 | Jean-Didier | set | recipients:
+ Jean-Didier |
2019-11-17 11:52:05 | Jean-Didier | set | messageid: <1573991525.07.0.835950836621.issue38829@roundup.psfhosted.org> |
2019-11-17 11:52:05 | Jean-Didier | link | issue38829 messages |
2019-11-17 11:52:04 | Jean-Didier | create | |
|