This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: piped input
Type: behavior Stage:
Components: IO Versions: Python 3.0
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, rtmq
Priority: normal Keywords:

Created on 2009-06-05 19:59 by rtmq, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg88970 - (view) Author: Robert T McQuaid (rtmq) Date: 2009-06-05 19:59
#
#  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
msg88975 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-06-05 21:43
This is a bug in Windows Python can do nothing about, see
http://support.microsoft.com/kb/321788.
History
Date User Action Args
2022-04-11 14:56:49adminsetgithub: 50461
2009-06-05 21:43:23georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg88975

resolution: wont fix
2009-06-05 19:59:22rtmqcreate