Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.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.008 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:not': 0.03; 'mrab': 0.05; 'subject:Python': 0.06; 'attribute': 0.07; 'class,': 0.07; 'subject:Unicode': 0.16; 'sys.stdout': 0.16; 'wrote:': 0.18; 'work,': 0.20; 'seems': 0.21; 'of.': 0.24; 'mon,': 0.24; 'define': 0.26; 'header:In-Reply-To:1': 0.27; 'mode': 0.30; 'message- id:@mail.gmail.com': 0.30; 'checking': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'instances': 0.36; 'to:addr:python- list': 0.38; 'pm,': 0.38; '12,': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'subject:know': 0.84; 'subject:you': 0.87; 'subject:want': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=0jkCFl+dzJwUP/6aIG4OJLHel2eECRsZ8b+VQu8MGlo=; b=fhWDQY1sdmfrsEvpNxQdLxGl9jxLmX+ScmCqFx1qsDgBiy73vDSFAtq+Pg8rz/BTVS 5LwtbxLkxyMXV09EaP0yhh+wI0VY43+WjnoOAYm7wb3f5svj1hMN/OAjHkl8FsCQEiOW Z0EEZVyBrPJ5LUGTW7lWrPM2VbdvthCyy695DgByKwmWvUgyGv1dMXVclB0lFLHEa88J cQKC8FK7W0fC6GIah0cGq2aDWgqLKqGbxfWdl0wnL/8eEIbBpboTksl8MIbmCh3L04+5 pVbXBgsSBerlzFxNLTlBJLrjjrR4ykho190v7q8zWtxeFOYUT3EjcD7F6DlnpKCehU/G Jv4w== X-Received: by 10.68.164.130 with SMTP id yq2mr873245pbb.61.1399933022831; Mon, 12 May 2014 15:17:02 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <5371241E.10309@mrabarnett.plus.com> References: <8P7cv.78617$Sp6.8377@fx15.am4> <5371241E.10309@mrabarnett.plus.com> From: Ian Kelly Date: Mon, 12 May 2014 16:16:22 -0600 Subject: Re: Everything you did not want to know about Unicode in Python 3 To: Python Content-Type: text/plain; charset=UTF-8 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: 6 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1399936290 news.xs4all.nl 2942 [2001:888:2000:d::a6]:49709 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71404 On Mon, May 12, 2014 at 1:42 PM, MRAB wrote: > How about checking sys.stdin.mode and sys.stdout.mode? Seems to work, but I notice that the docs only define the mode attribute for the FileIO class, which sys.stdin and sys.stdout are not instances of.