On Sat, Jan 16, 2021 at 1:36 PM Greg Ewing <greg.ew...@canterbury.ac.nz> wrote: > > On 16/01/21 7:33 am, Grant Edwards wrote: > > Starting in Python 3.<something>, python's stdio file objects are _not_ > > on top of the libc FILE streams: they're directly on top of the file > > descriptor. > > This sounds like rather a bad situation, because it means that > any C library using stdio is going to interact badly with Python > stdio. > > Can something be done about this? Maybe Python stdio objects > should flush all the C stdio streams before writing anything? >
Surely it should be the other way around? If you use the C stdio streams, flush them after use. Like with everything else that you flush. ChrisA -- https://mail.python.org/mailman/listinfo/python-list