Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8430

Re: what's the big deal for print()

From Terry Reedy <tjreedy@udel.edu>
Subject Re: what's the big deal for print()
Date 2011-06-24 23:54 -0400
References <d3558c5d-0fe6-4da7-843d-c2f45b2bf869@y13g2000yqy.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.400.1308974092.1164.python-list@python.org> (permalink)

Show all headers | View raw


On 6/24/2011 10:39 PM, pipehappy wrote:
> Hi,
>
> Why people want print() instead of print str? That's not a big deal
> and the old choice is more natural. Anyone has some clue?

print as a function instead of a statement is consistent with input as a 
function, can be overridden with custom versions, can be passed to 
functions as an argument, and can have options passed as arguments 
instead of with terrible syntax hacks.

-- 
Terry Jan Reedy

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

what's the big deal for print() pipehappy <pipehappy@gmail.com> - 2011-06-24 19:39 -0700
  Re: what's the big deal for print() John Gordon <gordon@panix.com> - 2011-06-25 03:23 +0000
    Re: what's the big deal for print() steve+comp.lang.python@pearwood.info - 2011-06-25 14:01 +1000
      Re: what's the big deal for print() Duncan Booth <duncan.booth@invalid.invalid> - 2011-06-27 08:23 +0000
  Re: what's the big deal for print() Terry Reedy <tjreedy@udel.edu> - 2011-06-24 23:54 -0400

csiph-web