Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.092 X-Spam-Evidence: '*H*': 0.82; '*S*': 0.00; 'exception': 0.03; 'still,': 0.16; 'provided,': 0.22; 'least': 0.25; 'header:In- Reply-To:1': 0.25; 'replace': 0.27; "doesn't": 0.28; 'received:192.168.100': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'from:no real name:2**0': 0.60; 'message-id:@mx.google.com': 0.81 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:to:subject:in-reply-to; bh=hA4INDnIfCL78f5YeB5Ka6LJUX8p8eugKvePbDta9yg=; b=iDjhvfXz/qYdmm4fWBOYYcDNHvJFML9ery1ewJqU9qVCyxCITECs2vflQ8Je3gPMT/ E1Q8VrCSZ3JTbK8j+lKJ8CcLT1uDLznwOnMHlRtD3h39Z+WoIJ+ZRiks1RphlWLdheYa 9ulpTbyg+ciHmJAvWpznFnkRWbBJhpNf1do/oMp77aP4bKgbMOz/LIrjw8pzSDaKCl7l WAOgADVic9ahqZwqq2JJEsQ1/EsGwa0SA1P5AYX3hZNeoOmqNbMJ6jU2FUR/0QdY3tER aTQZU/zYE4hWWQ0PwfolVGqsovwSLkAVR8p+A7/SeviYGwSbSxdQEtIeeBOWPQ9ZHcei rM6g== X-Received: by 10.14.219.129 with SMTP id m1mr18421049eep.16.1361629093247; Sat, 23 Feb 2013 06:18:13 -0800 (PST) Date: Sat, 23 Feb 2013 06:18:12 -0800 (PST) From: drekin@gmail.com To: python-list@python.org Subject: RE: Altering sys.stdin In-Reply-To: <5128C2EA.8010208@gmail.com> 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: 5 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361629101 news.xs4all.nl 6929 [2001:888:2000:d::a6]:50232 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39670 > If you're going to replace something, the replacement needs to at least quack like the original... That's for the freezing, even though an exception would be better. But still, even when custon TextIO object is provided, interactive console doesn't read from it (however input() does).