[issue26472] Infinite loop

2016-03-02 Thread Christian Heimes
Christian Heimes added the comment: 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:

[issue26472] Infinite loop

2016-03-02 Thread Tibichte
New submission from Tibichte: The code below runs indefinitely: with open(False) as f: for line in f: print(line) -- components: IO messages: 261113 nosy: DarkMagus priority: normal severity: normal status: open title: Infinite loop type: behavior versions: Python 3.5