Again: Please hear my plea: print without softspace

Terry Reedy tjreedy at udel.edu
Thu Mar 4 20:19:26 EST 2004


"David MacQuigg" <dmq at gain.com> wrote in message
news:f0oe40hujm0rqcci2fgrhc445qgjs9anfe at 4ax.com...
> On Thu, 04 Mar 2004 12:52:27 GMT, Dang Griffith
> >On Tue, 02 Mar 2004 10:32:35 -0700, David MacQuigg wrote:
> >
> >>The 'print' statement is just shortcut for 'sys.stdout.write' with
> >>some convenience features suitable for most users. \

> >'print' is not a shortcut for 'sys.stdout.write'.

Depends on how fussy one is being about the meaning of 'shortcut'.
'Syntactic sugar' is another way to put it.

> I'm not using the word 'shortcut' very precisely.

I think you were precise enough for informal clp discussion with no
retraction needed.

>  Mark Lutz says what
> I mean more clearly in Learning Python, 2nd ed. p. 143: "the print
> statement ... provides a user-friendly interface to the sys.stdout
> object, with bit of default formatting."

And Guido said much the same about 5 years ago in clp.

Terry J. Reedy







More information about the Python-list mailing list