[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Old Man Yells At Cloud

Tim Chase wrote:
> Steve D'Aprano wrote:
> > Tim Golden wrote:

> > Presumably you've never wanted to print to something other
> > than std.out. The syntax in Python 2 is horrid:
> > 
> > print >>sys.stderr, args
> For those cases, the old syntax was sufficiently horrid
> that indeed I didn't use it, but rather used
>    print "Normal output"
>    sys.stderr.write("error output!\n")
> Yes, adding the \n manually is a minor annoyance, but it
> wasn't much of an issue.

A backwards compatible stderr.writeln() method would fix
that minor annoyance. 

> That said, I'm neither here nor there when it comes to
> using print-as-a-statement vs print-as-a-function.  I like
> the consistency it brings to the language, but miss the
> simplicity that Py2 had for new users.  I'd almost want to
> get it back as a feature of the REPL, even if it wasn't
> part of the language itself,

Agreed on that point. At least bring it back in the REPL.
The removal of the finger friendly print statement has
caused more tension in this community than any feature of
such small stature should ever cause.