Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news1.tnib.de!feed.news.tnib.de!news.tnib.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.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; 'formatting': 0.07; 'scripts': 0.09; 'python': 0.09; '"if': 0.09; '(without': 0.09; '986': 0.09; 'oh,': 0.09; 'semantics': 0.09; 'sub': 0.09; 'subject:Why': 0.09; 'subject:language': 0.09; 'subject:still': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr :python-list': 0.10; 'assume': 0.11; '"py"': 0.16; 'anyone?': 0.16; 'naive': 0.16; 'recusing': 0.16; 'statements,': 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; 'syntax.': 0.16; 'wrote:': 0.17; 'instance,': 0.17; 'skip:` 20': 0.17; 'stefan': 0.17; 'code.': 0.20; 'all,': 0.21; 'cc:2**0': 0.23; 'statement': 0.23; 'cc:no real name:2**0': 0.24; 'pass': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'developers': 0.26; '[1]': 0.27; 'logging': 0.27; "doesn't": 0.28; 'prints': 0.29; 'folder': 0.30; 'mode': 0.30; 'subject: ?': 0.30; 'function': 0.30; 'helpful': 0.30; 'code': 0.31; 'print': 0.32; 'comments': 0.33; 'instances': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'explain': 0.36; 'alone': 0.36; 'too': 0.36; 'does': 0.37; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'application': 0.40; 'from:no real name:2**0': 0.60; 'skip:u 10': 0.60; 'first': 0.61; 'skip:n 10': 0.63; '26,': 0.65; 'subject:there': 0.65; 'dear': 0.66; 'obvious': 0.71; 'special': 0.73; 'forward,': 0.84; 'nancy': 0.84; 'thing,': 0.84; 'received:209.85.213.184': 0.91; 'received:mail- yx0-f184.google.com': 0.91; 'seriously,': 0.91 Newsgroups: comp.lang.python Date: Wed, 27 Jun 2012 20:53:59 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=166.249.196.39; posting-account=h3aEwQoAAACiuqX-oR3gvCVFm8lLHoWj References: <1340509604.38915.YahooMailClassic@web164605.mail.gq1.yahoo.com> <4fe92df1$0$29978$c3e8da3$5496439d@news.astraweb.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 166.249.196.39 MIME-Version: 1.0 Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ? From: rantingrickjohnson@gmail.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: , Message-ID: Lines: 35 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1340855647 news.xs4all.nl 6843 [2001:888:2000:d::a6]:49533 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24583 On Tuesday, June 26, 2012 1:34:03 AM UTC-5, Stefan Behnel wrote: > First of all, the statement has a rather special syntax that is not obvio= us > and practically non-extensible. It also has hidden semantics that are har= d > to explain and mixes formatting with output - soft-space, anyone? >=20 > The function is straight forward, configurable, does one thing, works wit= h > 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= . >=20 > Stefan >=20 >=20 > [1] Seriously, it's not very helpful in interactive mode and too simplist= ic > to be used in application code. Even scripts often work better with loggi= ng > than with prints. Unfortunately, even though "print" is supposedly only used by the neophytes= , the python<3.0 stdlib is full of print statements. For instance, out of 3= 173 files, 986 contained the word "print"[1]. Heck just in the Lib folder a= lone (without recusing down sub directories) there are 1352 instances of "p= rint" in a "py" file!=20 Naive Nancy Mused: "If only neophtes use print, and the Python Lib is full = of prints statements, then the python developers must be...OH DEAR GAWD!" [1] of course that is when using `filestr.count("print")` -- I assume that = the word "print" is not used excessively in comments or docstrings. Someone= else can do a less naive search if they like.