Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2a.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'say,': 0.05; 'python3': 0.07; 'string': 0.09; '2to3': 0.09; 'inserts': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'starter': 0.09; 'language.': 0.14; '__future__': 0.16; 'brackets,': 0.16; 'newlines': 0.16; 'python3.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:python': 0.16; 'appropriate': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'library': 0.18; 'typing': 0.19; 'seems': 0.21; 'import': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'bytes': 0.24; '---': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply- To:1': 0.27; 'mix': 0.30; 'code': 0.31; 'there.': 0.32; 'problem': 0.35; 'transition': 0.36; 'should': 0.36; 'two': 0.37; 'to:addr :python-list': 0.38; 'though,': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'free': 0.61; 'helps': 0.61; 'viruses': 0.61; 'kindly': 0.61; 'protection': 0.63; 'our': 0.64; 'here': 0.66; 'antivirus': 0.68; 'genuine': 0.78; 'confusing': 0.84; 'facilities.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: running python 2 vs 3 Date: Thu, 20 Mar 2014 20:44:03 +0000 References: <87ob10nbeh.fsf@elektro.pacujo.net> <532B4750.2090006@yahoo.com> <87eh1wpr96.fsf@elektro.pacujo.net> <87a9ckpq7y.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-146-8-179.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <87a9ckpq7y.fsf@elektro.pacujo.net> X-Antivirus: avast! (VPS 140319-1, 19/03/2014), Outbound message X-Antivirus-Status: Clean 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: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395348268 news.xs4all.nl 2890 [2001:888:2000:d::a6]:55248 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68617 On 20/03/2014 20:30, Marko Rauhamaa wrote: > Mark Lawrence : > >> The starter is 2to3 which had been in the standard library for what >> seems like an eternity to me. > > No problem there. It helps you transition from python2 to python3. > > However, python3 is here and you should be able to write genuine python3 > code with the appropriate bytes and string facilities. It would be very > confusing to try to mix the two regimes. > > I must say, though, that Python3 destroyed "print" forever for me. To > avoid nausea, I write sys.stdout.write() in all Python3 code. > Not for me, I was using from __future__ import print_function for years so got used to typing those two extra brackets, plus print very kindly inserts the newlines for me. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com