Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feed.xsnews.nl!border-2.ams.xsnews.nl!feeder2.cambriumusenet.nl!feed.tweaknews.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.027 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'python.': 0.02; '2to3': 0.09; 'cc:addr:python-list': 0.10; '"list': 0.16; 'subject: \n ': 0.16; 'subject:Why': 0.16; 'subject:language': 0.16; 'subject:still': 0.16; 'to:addr:pearwood.info': 0.16; 'to:addr:steve+comp.lang.python': 0.16; "to:name:steven d'aprano": 0.16; 'mon,': 0.16; 'wrote:': 0.17; 'passing': 0.18; 'typing': 0.18; 'surely': 0.22; 'header:In-Reply-To:1': 0.23; 'print': 0.25; 'message-id:@mail.gmail.com': 0.27; 'cc:2**0': 0.27; 'statement': 0.27; 'subject: ?': 0.27; 'cc:no real name:2**0': 0.28; 'cc:addr:python.org': 0.29; "d'aprano": 0.29; 'steven': 0.29; 'function': 0.29; 'change,': 0.33; 'received:google.com': 0.34; 'handle': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'received:209.85.160.46': 0.36; 'but': 0.36; 'difference': 0.37; 'subject:: ': 0.37; 'received:209': 0.37; 'mean': 0.38; 'pm,': 0.38; 'why': 0.39; 'enough': 0.39; 'header:Received:5': 0.39; 'yes,': 0.60; 'simple': 0.60; 'first': 0.62; 'between': 0.63; 'real': 0.63; 'zip': 0.64; 'making': 0.67; 'fortunately': 0.84; 'received:mail-pb0-f46.google.com': 0.84; 'mistake': 0.91; 'subject:there': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=iSIMWtkBZxt8QuSAIaXJDz0cu5RJCrN22BEyUTsX9n0=; b=IEQbe2PpCU4ZwZyEAhMI6kXEZyhbp0JjHJOkq3rhLGmYo+SPbBajKTNuM5h1/thnWD nkche07OAVW1fdvDVlGxeVbOCOnf+fWE+AzmVpX9MrQy30DrCY6JzzKyuhSixva11ivh JgcgynwoQlyKOIB23uGH1KIIQj8HSqEH1hiddw7XGI5CjDCW3PO8YZ3lTMPg4UtwE5Wh pkNuS7pGIQGunS5gRkQtCAck7FjKP9Xj222oI2MbbZRQCnpk/Cbz5vk18dweIFYvBPgM Aujog+yi8gKulfxd0wBRIWWHQ83UgwaEPKG40PlFxAWfVvlL9mSzHLLxSmtbna+HG3vi nBDg== MIME-Version: 1.0 In-Reply-To: <4fe92df1$0$29978$c3e8da3$5496439d@news.astraweb.com> References: <1340509604.38915.YahooMailClassic@web164605.mail.gq1.yahoo.com> <4fe92df1$0$29978$c3e8da3$5496439d@news.astraweb.com> From: Devin Jeanpierre Date: Tue, 26 Jun 2012 02:15:17 -0400 Subject: Re: Why has python3 been created as a seperate language where there is still python2.7 ? To: "Steven D'Aprano" Content-Type: text/plain; charset=UTF-8 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1340691362 news.xs4all.nl 6907 [2001:888:2000:d::a6]:34825 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:24458 On Mon, Jun 25, 2012 at 11:35 PM, Steven D'Aprano wrote: > There's no real difference between typing print(...) and all the other > functions in Python. Do you lament having to type len(obj) instead of > "len obj" or list(zip(a, b, c)) instead of "list zip a b c"? Surely you mean "list $ zip a b c"? ;) But yes, it's really not a big deal. It's a trivial change, and one that 2to3 can handle really easily. > > 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? -- Devin