Message261114
In open(False) Fale is interpreted as int 0. The function call opens file descriptor 0 (stdin) and waits for incoming data.
Try this code, enter some text and press enter to see what is going on:
with open(False) as f:
for line in f:
print('stdin: ', line) |
|
Date |
User |
Action |
Args |
2016-03-02 13:29:14 | christian.heimes | set | recipients:
+ christian.heimes, DarkMagus |
2016-03-02 13:29:14 | christian.heimes | set | messageid: <1456925354.63.0.917845423583.issue26472@psf.upfronthosting.co.za> |
2016-03-02 13:29:14 | christian.heimes | link | issue26472 messages |
2016-03-02 13:29:14 | christian.heimes | create | |
|