Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(at': 0.04; 'subject:Python': 0.06; 'filing': 0.07; '"or': 0.09; 'arguments': 0.09; 'excluding': 0.09; 'output,': 0.09; 'pep': 0.09; 'cc:addr :python-list': 0.11; 'python': 0.11; 'advocating': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'mutable': 0.16; 'only?': 0.16; 'relevance': 0.16; 'said.': 0.16; 'tuple': 0.16; 'unnecessary.': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'coding': 0.22; 'saying': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'cc:2**0': 0.24; 'values': 0.27; 'header:In-Reply- To:1': 0.27; 'function': 0.29; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'that.': 0.31; 'filed': 0.31; 'prints': 0.31; 'sep': 0.31; 'this.': 0.32; 'me?': 0.32; 'programmers': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'possible': 0.36; 'should': 0.36; 'list': 0.37; 'being': 0.38; 'lists.': 0.38; 'pm,': 0.38; 'called': 0.40; 'how': 0.40; 'voice': 0.60; 'new': 0.61; 'more': 0.64; 'side': 0.67; 'dont': 0.67; 'absolutely': 0.87; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=aOMO5LtvHfonHYxlQxU5cVblnXYPLu/TANEycu8nmGk=; b=WTsRYhclYvv5EV+ne8gfSAG146nbdVtvV860WRuC9pfTWrETFALYmdeTP78QCt6iwt Mf7/1TqkVceL6F3z+7VkplSrytmunAqN4eTVuQfD11WHt5vhnSjQRE6miME1BQyKjMip 4nSwXGop2P2cyHNalMtBgueuHriYqJNXlWYqSaZAMtukV7YmypbkCCRfjAzxpjV9gh/B AaU+px8xJB9+nJeTQpqaEuceJr/TNEZHrXn+8arlKjiS9qnB5KWQWmEnRIxNm+ddztGM m1/5jgLjVjRJUbM3Nhw0vj733t378+Y9dJD8sptYcGAjLQBfLFTBJp+L1XyvjIXb5h5p tGrw== MIME-Version: 1.0 X-Received: by 10.42.118.211 with SMTP id y19mr2262086icq.12.1409806950598; Wed, 03 Sep 2014 22:02:30 -0700 (PDT) In-Reply-To: <4c873e02-93b1-4ad3-bc91-566a72b8e729@googlegroups.com> References: <51acfec6-6b7b-4773-8d70-0360381bbed1@googlegroups.com> <4c873e02-93b1-4ad3-bc91-566a72b8e729@googlegroups.com> Date: Thu, 4 Sep 2014 15:02:30 +1000 Subject: Re: Python is going to be hard From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1409806953 news.xs4all.nl 2910 [2001:888:2000:d::a6]:38663 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77534 On Thu, Sep 4, 2014 at 2:11 PM, Rustom Mody wrote: > Is there some PEP filed called "Abolish print in python 4" ? > I dont remember filing any such... You screamed "NO PRINT" at us in the voice of Edna Mode. (At least, that's how I imagined it being said. YMMV.) > Perhaps you should think of the relevance (rather than the > correctness) of your arguments Chris! Are you arguing > > 1. With me? > > If 1 then yeah I know when to use prints and when not This. Then why are you advocating their non-use to new programmers? Are you really saying print() is for experienced people only? Or, more generally, that it should be possible for new programmers to do absolutely all their coding at the REPL, never using any function with side effects or mutating any state? (I was going to say "or using any mutable objects", but since Python doesn't have tuple comprehensions, you'd have to use lists. But if you never change what a list contains, it comes to the same thing.) Because that is what I'm arguing against. New programmers and experienced programmers alike need their code to produce output, and return values are just one form of that. Excluding all other forms is unnecessary. ChrisA