Python is going to be hard
rosuav at gmail.com
Thu Sep 4 07:02:30 CEST 2014
On Thu, Sep 4, 2014 at 2:11 PM, Rustom Mody <rustompmody at gmail.com> 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
More information about the Python-list