Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.120 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.80; '*S*': 0.04; '24,': 0.16; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Line': 0.16; 'subject:Reading': 0.16; 'sudo': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'asking': 0.27; 'header:In-Reply- To:1': 0.27; 'correct': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'received:google.com': 0.35; 'there': 0.35; 'passwords': 0.36; 'ben': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'times': 0.62; "you've": 0.63; 'more': 0.64; 'subject:After': 0.84; 'subject:From': 0.97; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=YJlgaRrFpN0UEGhhZg7jGZt3ciENmB9gff+SEo5OB/U=; b=m/s03QaXyLLOKm1Z0bxX0IJinJlFWo98AFScgKnBeAXxsZX/QT5LWlXLtjs644gn9m n3VTjD9nD/uexlMfEGlocfyV+Z/KHT/qF10czBievyLXp0RudpvzYpOL8NOybzXNZ0HM WNOb4nuVq4+cReEeQrBWN+SlVSF6P5qsjzuU2khJh3mA/h+yRQ8WMGJtM05osIQeGIYX wgukAHk16oaRrrU08UPsE6jp6lqy/ao9ZxfXRIqzCOEg64cq87fTtd6p9kkUrAQEfjV9 B5NBUKZTGYgyJpdTBRRhSomviDPxAnDWX8GXmvTNSKygYP9M7sA9K7iBSwT1FyPAofhA YEvA== MIME-Version: 1.0 X-Received: by 10.68.175.33 with SMTP id bx1mr3564771pbc.21.1382561536287; Wed, 23 Oct 2013 13:52:16 -0700 (PDT) In-Reply-To: <7wli1jemvg.fsf@benfinney.id.au> References: <7cdlja-j3j2.ln1@ozzie.tundraware.com> <7wli1jemvg.fsf@benfinney.id.au> Date: Thu, 24 Oct 2013 07:52:16 +1100 Subject: Re: Reading From stdin After Command Line Redirection From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382561546 news.xs4all.nl 15926 [2001:888:2000:d::a6]:33370 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57387 On Thu, Oct 24, 2013 at 7:46 AM, Ben Finney wrote: > Can you speak more about how you intend your program to be used? The > above request is incoherent, and I suspect you've made a design mistake. There are times when this is correct behaviour - like asking for passwords (SSH and sudo work like this). ChrisA