Message131755
We are talking about different things here:
- When python is run from a console, sys.stdout is line buffered. sys.stdout.write() flushes if there is a carriage return. No need to change anything here.
- print() could call file.flush() if file.isatty(), *after* the multiple calls to file.write(). |
|
Date |
User |
Action |
Args |
2011-03-22 17:28:31 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, vstinner, techtonik |
2011-03-22 17:28:31 | amaury.forgeotdarc | set | messageid: <1300814911.89.0.097996346613.issue11633@psf.upfronthosting.co.za> |
2011-03-22 17:28:31 | amaury.forgeotdarc | link | issue11633 messages |
2011-03-22 17:28:31 | amaury.forgeotdarc | create | |
|