[New-bugs-announce] [issue6212] piped input

Robert T McQuaid report at bugs.python.org
Fri Jun 5 21:59:23 CEST 2009


New submission from Robert T McQuaid <rtmq at fixcas.com>:

#
#  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 <report at bugs.python.org>
<http://bugs.python.org/issue6212>
_______________________________________


More information about the New-bugs-announce mailing list