Message91154
Looks like python needs eof() or something for file objects, just like
any other languages.
Since read() is using the system call, that's the right behavior: read()
blocks until EOF, and returns whatever was buffered. EOF character is
consumed, but since it's a stdin, it is never closed. The next read()
will again wait for normal input.
The 2nd EOF mark without anything in-between will return an empty string. |
|
Date |
User |
Action |
Args |
2009-07-31 21:38:56 | famart | set | recipients:
+ famart, pitrou, ocean-city, r_mosaic, cassava |
2009-07-31 21:38:55 | famart | set | messageid: <1249076335.99.0.162087180462.issue5505@psf.upfronthosting.co.za> |
2009-07-31 21:38:54 | famart | link | issue5505 messages |
2009-07-31 21:38:54 | famart | create | |
|