[issue38829] Make the function flush_io accessible in the C-API

2021-06-22 Thread Petr Viktorin
Petr Viktorin added the comment: To follow up on the StackOverflow discussion: A call to PyErr_Print should invoke sys.excepthook. Unless sys.excepthook was changed, this should print the message *and* flush standard output. If it doesn't, I recommend investigating why. If that does not work

[issue38829] Make the function flush_io accessible in the C-API

2019-12-09 Thread STINNER Victor
Change by STINNER Victor : -- components: +C API -IO ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue38829] Make the function flush_io accessible in the C-API

2019-11-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PyObject_CallMethod(file, "flush", NULL) -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue38829] Make the function flush_io accessible in the C-API

2019-11-17 Thread Jean-Didier
New submission from Jean-Didier : 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-pri