[issue45327] Reading from a file is stuck infinitely when the file name is Boolean

2021-09-30 Thread Vinayak Hosamani
Vinayak Hosamani added the comment: Thanks for the clarification Eric. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue45327] Reading from a file is stuck infinitely when the file name is Boolean

2021-09-29 Thread Eric V. Smith
Eric V. Smith added the comment: The issue is that False is causing a read from stdin, since False == 0. >>> open(0).readlines() test ['test\n'] Here I typed "test", followed by Ctrl-D (end of file). readlines() then completed and printed its result. I think the basic answer here is "don't

[issue45327] Reading from a file is stuck infinitely when the file name is Boolean

2021-09-29 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Interpreter Core -Library (Lib) title: json loads is stuck infinitely when the file name is Boolean -> Reading from a file is stuck infinitely when the file name is Boolean type: -> behavior ___ Python trac