Sujet : Re: New meets old
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 17. Jun 2025, 02:28:29
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <102qgbt$1vtn2$2@dont-email.me>
References : 1
User-Agent : Pan/0.162 (Pokrosvk)
On Mon, 16 Jun 2025 15:15:39 -0400, Arne Vajhøj wrote:
sys.stdout.writelines(sys.stdin.readlines())
sys.stdout.writelines(sys.stdin.readlines())
Some interesting semantics going on there. How do you continue reading
after encountering EOF? How does it reset the EOF condition to let you get
the second lot of data?
Normally, once an open file gets to EOF, it stays in that state until
fseek(2) (or equivalent) is called.