Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.03; 'output': 0.04; 'debugging': 0.05; 'formatting': 0.07; 'think,': 0.07; 'python': 0.09; '173': 0.09; '__future__': 0.09; 'agree,': 0.09; 'modules.': 0.09; 'oh,': 0.09; 'pgp': 0.09; 'porting': 0.09; 'semantics': 0.09; 'subject:Why': 0.09; 'subject:language': 0.09; 'subject:still': 0.09; 'tismer': 0.09; 'cc:addr:python-list': 0.10; '+49': 0.15; 'passing': 0.15; '"from': 0.16; '*starship*': 0.16; '0x57f3bf04': 0.16; '1619': 0.16; '305b': 0.16; '57f3': 0.16; '5a3b': 0.16; '776': 0.16; '9064': 0.16; 'anyone?': 0.16; 'backward': 0.16; 'bf04': 0.16; 'break!': 0.16; 'c09c': 0.16; 'c2ff': 0.16; 'construct.': 0.16; 'd754': 0.16; 'expressions?': 0.16; 'f4e1': 0.16; 'from:addr:stackless.com': 0.16; 'from:addr:tismer': 0.16; 'from:name:christian tismer': 0.16; 'instance)': 0.16; 'message-id:@stackless.com': 0.16; 'modules,': 0.16; 'received:stackless.com': 0.16; 'sense,': 0.16; 'statement.': 0.16; 'subject: \n ': 0.16; 'subject:created': 0.16; 'subject:python2.7': 0.16; 'subject:python3': 0.16; 'subject:seperate': 0.16; 'subject:where': 0.16; 'symmetric': 0.16; 'syntax.': 0.16; 'tismerysoft': 0.16; 'url:stackless': 0.16; 'url:starship': 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'stefan': 0.17; '>>>': 0.18; 'code,': 0.18; 'code.': 0.20; 'discussion': 0.20; 'changes': 0.20; 'gmbh': 0.20; 'all,': 0.21; 'import': 0.21; 'sponsor': 0.21; 'are.': 0.22; 'exists.': 0.22; 'modifying': 0.22; 'cc:2**0': 0.23; 'flexibility': 0.23; "python's": 0.23; 'statement': 0.23; 'cheers': 0.24; 'cc:no real name:2**0': 0.24; 'pass': 0.25; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'ride': 0.27; 'transition': 0.27; "doesn't": 0.28; 'chris': 0.28; 'fine': 0.28; 'acceptance': 0.29; "d'aprano": 0.29; 'python2.7': 0.29; 'steven': 0.29; 'that.': 0.30; 'subject: ?': 0.30; 'function': 0.30; 'stuff': 0.30; 'code': 0.31; 'point': 0.31; 'url:python': 0.32; 'could': 0.32; 'print': 0.32; 'christian': 0.34; 'skip:k 20': 0.35; 'today?': 0.35; 'pm,': 0.35; 'something': 0.35; 'explain': 0.36; 'but': 0.36; 'enough': 0.36; 'does': 0.37; 'why': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'things': 0.38; 'whom': 0.39; 'skip:u 10': 0.60; 'first': 0.61; 'skip:n 10': 0.63; 'making': 0.64; 'great': 0.64; 'subject:there': 0.65; 'obvious': 0.71; 'special': 0.73; 'easier,': 0.84; 'fortunately': 0.84; 'forward,': 0.84; 'n.a.': 0.84; 'revive': 0.84; 'thing,': 0.84; 'received:89': 0.86; 'mistake': 0.91 Date: Wed, 27 Jun 2012 12:25:56 +0200 From: Christian Tismer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: Stefan Behnel Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ? References: <1340509604.38915.YahooMailClassic@web164605.mail.gq1.yahoo.com> <4fe92df1$0$29978$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 54 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1340792765 news.xs4all.nl 6878 [2001:888:2000:d::a6]:59323 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24499 On 26.06.12 08:34, Stefan Behnel wrote: > Devin Jeanpierre, 26.06.2012 08:15: >> On Mon, Jun 25, 2012 at 11:35 PM, Steven D'Aprano >>> Making print a statement in the first place was a mistake, but >>> fortunately it was a simple enough mistake to rectify once the need for >>> backward compatibility was relaxed. >> Hmmm, why is the function so much better than the statement? You like >> using it in expressions? Or is it that you like passing it in as a >> callback? > First of all, the statement has a rather special syntax that is not obvious > and practically non-extensible. It also has hidden semantics that are hard > to explain and mixes formatting with output - soft-space, anyone? > > The function is straight forward, configurable, does one thing, works with > help() and doesn't get in the way. And something as rarely[1] used as a > print simply doesn't deserve special syntax. Oh, and, yes, you can even > pass it into some code as callback, although I rarely had a need for that. > I agree, and I don't want to revive an old discussion of the print statement. I just still don't see the point why the transition is made so uni-directional? With python2.7, it is great that "from __future__ import print_function" exists. But porting old code (PIL for instance) imposes a lot of changes which don't make sense, but produce overhead. Some are simple things like the print statement, which is used only in the debugging code. Enforcing the syntax change enforces changing many modules, which could otherwise work just fine as they are. I think, for the small importance of the print statement in code, it would have made the transition easier, if python 3 was as flexible as python 2.7, with a symmetric "from __past__ import print_statement" construct. That would have at least my acceptance much quicker, because the necessity of modifying stuff would reduce to the few changes which are important in a few modules. So right now, I try to use python 3, but the flexibility is right now in python2.7 . cheers - Chris -- Christian Tismer :^) tismerysoft GmbH : Have a break! Take a ride on Python's Karl-Liebknecht-Str. 121 : *Starship* http://starship.python.net/ 14482 Potsdam : PGP key -> http://pgp.uni-mainz.de work +49 173 24 18 776 mobile +49 173 24 18 776 fax n.a. PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/