IOError: (0,"Error") when closing "os.popen"ed file?

Adrian Eyre a.eyre at optichrome.com
Mon Jan 31 10:36:21 EST 2000


> But maybe I should repeat the flush() until it succeeds, and only
> then close() the file. Since I wrote my first message I have already
> found occasions where even the sleep(0.1) doesn't solve the problem.
> Bad. I really hope I can properly fix this.

TBH it sounds more like a bug in one of the following:

* Python
* Standard C libraries
* OS

I suspect one of the latter two.

Are you not able to trace where/why this odd error occurs?

--------------------------------------------
Adrian Eyre <a.eyre at optichrome.com>
http://www.optichrome.com 





More information about the Python-list mailing list