[issue32965] Passing a bool to io.open() should raise a TypeError, not read from stdin

2018-02-27 Thread Erik Johnson
Erik Johnson added the comment: Also, it's the 3rd and 4th reads that I had to hit ctrl-d to get back to the REPL, as you can see in the example the first two read just fine from that initial block of text I had pasted in. This is what I get for not properly proofreading before I fi

[issue32965] Passing a bool to io.open() should raise a TypeError, not read from stdin

2018-02-27 Thread Erik Johnson
Erik Johnson added the comment: Please excuse the typo on the 2nd line of the OP, it should say "open/io.open", not "op/io.open". -- ___ Python tracker <https://bug

[issue32965] Passing a bool to io.open() should raise a TypeError, not read from stdin

2018-02-27 Thread Erik Johnson
New submission from Erik Johnson : When you open a filehandle using either True or False as the file, the open succeeds. This has been reproduced using op/io.open on Python 3.6.4, 3.5.2, and 3.4.5, as well as with io.open() on Python 2.7.14. This can be easily demonstrated in the REPL