Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'imported': 0.09; 'lawrence': 0.09; "'w',": 0.16; 'behave': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'michael,': 0.16; 'sys.stdout': 0.16; 'wrote:': 0.18; 'import': 0.22; 'mon,': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'lot.': 0.31; 'subject:from': 0.34; 'subject: (': 0.35; 'received:google.com': 0.35; 'in.': 0.36; 'opposed': 0.36; 'should': 0.36; 'effort': 0.37; 'two': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'more': 0.64; '7:00': 0.84; 'why?': 0.91; '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:content-transfer-encoding; bh=q2T0tiMVF+QYH+AqCkgNDIFxgOhF37dVra/T6OK5OWc=; b=tNQ0QMf5Wg9qSyPRo6YQE0mJlCKaiG5RfriMLtI6+o7YiztktHGkkCgHLvXqqBxL/F uIxAIorZuKodJTCxUyqQdkh+t3FMt3iY5sqXHR00tgoYPRNynLbx2wJFp77Uos+kuT1N pAxk93mOTh1iKfnyyIOt3+KKJM1betDz4Vx8M6NpRq43dlybUaIfgldcrt/ORBbU467g 4kaap8aC+kQPPS1GPqJd6fUGNa4MOC12MfpxRISER/2L8Ce6Tmx+P1cp/eczu5i9oENG DvQgALESK5PFLX8XOjil+jC6qPSuVQgjUr6BzHt/KwnHW+L6ukg+uPQibl82OdJmqVTn j6Kg== MIME-Version: 1.0 X-Received: by 10.220.215.73 with SMTP id hd9mr16675293vcb.19.1370250329431; Mon, 03 Jun 2013 02:05:29 -0700 (PDT) In-Reply-To: References: <2c425f2b-99de-4453-964e-c585f2043f71@googlegroups.com> <749e23ce-9b40-4ed4-aa6a-b06c2d7a1c24@googlegroups.com> <18755849-35bc-4925-811a-8f6f9fb5bf9c@googlegroups.com> <8c16324f-da12-44ff-bf2f-4ae56f9127c0@googlegroups.com> <08d3f040-8f29-414c-a24e-c728cd387278@googlegroups.com> <1e3ee6bc-f14c-4ffd-861b-7bab16e8b750@googlegroups.com> Date: Mon, 3 Jun 2013 19:05:28 +1000 Subject: Re: Changing filenames from Greeklish => Greek (subprocess complain) From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370250804 news.xs4all.nl 15915 [2001:888:2000:d::a6]:60177 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46782 On Mon, Jun 3, 2013 at 7:00 PM, Mark Lawrence wro= te: > On 03/06/2013 07:11, =CD=E9=EA=FC=EB=E1=EF=F2 =CA=EF=FD=F1=E1=F2 wrote: >> >> Thankls Michael, >> >> are these two behave the same in your opinion? >> >> sys.stdout =3D os.fdopen(1, 'w', encoding=3D'utf-8') >> >> which is what i have now >> opposed to this one >> >> import ocdecs >> sys.stdout =3D codecs.getwriter("utf-8")(sys.stdout.detach()) >> >> Which one should i keep and why? >> > > import ocdecs? > > Sums up perfectly the amount of effort you put in. If he imported a little more OCD, it might help a lot. ChrisA