New submission from Robert T McQuaid <[email protected]>: # # Python 3.0.1 can read piped input when invoked with a # program name as the argument of the interpreter, but not # when invoked implicitly by the file extension. On # Windows xp the first command below runs successfully, the # second ends with a diagnostic: 'NoneType' object has no # attribute 'isatty' # # # dir | e:\python30\python test17.py # dir | test17.py # #
import sys if sys.stdin.isatty(): pass ---------- components: IO messages: 88970 nosy: rtmq severity: normal status: open title: piped input type: behavior versions: Python 3.0 _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue6212> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
