Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

piped input #50461

Closed
rtmq mannequin opened this issue Jun 5, 2009 · 2 comments
Closed

piped input #50461

rtmq mannequin opened this issue Jun 5, 2009 · 2 comments
Labels
topic-IO type-bug An unexpected behavior, bug, or error

Comments

@rtmq
Copy link
Mannequin

rtmq mannequin commented Jun 5, 2009

BPO 6212
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2009-06-05.21:43:23.090>
created_at = <Date 2009-06-05.19:59:22.745>
labels = ['type-bug', 'expert-IO']
title = 'piped input'
updated_at = <Date 2009-06-05.21:43:23.088>
user = 'https://bugs.python.org/rtmq'

bugs.python.org fields:

activity = <Date 2009-06-05.21:43:23.088>
actor = 'georg.brandl'
assignee = 'none'
closed = True
closed_date = <Date 2009-06-05.21:43:23.090>
closer = 'georg.brandl'
components = ['IO']
creation = <Date 2009-06-05.19:59:22.745>
creator = 'rtmq'
dependencies = []
files = []
hgrepos = []
issue_num = 6212
keywords = []
message_count = 2.0
messages = ['88970', '88975']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'rtmq']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue6212'
versions = ['Python 3.0']

@rtmq
Copy link
Mannequin Author

rtmq mannequin commented Jun 5, 2009

# 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

@rtmq rtmq mannequin added topic-IO type-bug An unexpected behavior, bug, or error labels Jun 5, 2009
@birkenfeld
Copy link
Member

This is a bug in Windows Python can do nothing about, see
http://support.microsoft.com/kb/321788.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-IO type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant