Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.roellig-ltd.de!open-news-network.org!cyclone01.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!npeersf04.am4!fx10.am4.POSTED!not-for-mail From: alister Subject: Re: Everything you did not want to know about Unicode in Python 3 Newsgroups: comp.lang.python References: <8P7cv.78617$Sp6.8377@fx15.am4> <537172eb$0$29980$c3e8da3$5496439d@news.astraweb.com> User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lines: 34 Message-ID: NNTP-Posting-Host: 82.5.246.13 X-Complaints-To: http://netreport.virginmedia.com X-Trace: 1399979946 82.5.246.13 (Tue, 13 May 2014 11:19:06 UTC) NNTP-Posting-Date: Tue, 13 May 2014 11:19:06 UTC Organization: virginmedia.com Date: Tue, 13 May 2014 11:19:06 GMT X-Received-Body-CRC: 723073586 X-Received-Bytes: 2115 Xref: csiph.com comp.lang.python:71470 On Tue, 13 May 2014 01:18:35 +0000, Steven D'Aprano wrote: > On Mon, 12 May 2014 17:47:48 +0000, alister wrote: > >> On Mon, 12 May 2014 16:19:17 +0100, Mark Lawrence wrote: >> >>> This was *NOT* written by our resident unicode expert >>> http://lucumr.pocoo.org/2014/5/12/everything-about-unicode/ >>> >>> Posted as I thought it would make a rather pleasant change from >>> interminable threads about names vs values vs variables vs objects. >> >> Surely those example programs are not the pythonoic way to do things or >> am i missing something? > > Armin Ronacher is an extremely experienced and knowledgeable Python > developer, and a Python core developer. He might be wrong, but he's not > *obviously* wrong. > I am only an amateur python coder which is why I asked if I am missing something I could not see any reason to be using the shutil module if all that the programm is doing is opening a file, reading it & then printing it. is it python that causes the issue, the shutil module or just the OS not liking the data it is being sent? an explanation of why this approach is taken would be much appreciated. -- Revenge is a form of nostalgia.