This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients DarkMagus, christian.heimes
Date 2016-03-02.13:29:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456925354.63.0.917845423583.issue26472@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2016-03-02 13:29:14christian.heimessetrecipients: + christian.heimes, DarkMagus
2016-03-02 13:29:14christian.heimessetmessageid: <1456925354.63.0.917845423583.issue26472@psf.upfronthosting.co.za>
2016-03-02 13:29:14christian.heimeslinkissue26472 messages
2016-03-02 13:29:14christian.heimescreate