Ned Deily <n...@python.org> added the comment: Thanks for your report. Alas, this is expected behavior. As documented, the Boolean values False and True behave like the integers 0 and 1; this behavior dates back to the earliest days of Python. So when you pass False to open, you are passing the integer 0 and file number 0 is sys.stdin.
https://docs.python.org/3/library/stdtypes.html#boolean-values ---------- nosy: +ned.deily resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32965> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com