PEP 0214 - extended print statement

Richard Jones Richard.Jones at fulcrum.com.au
Wed Aug 23 03:43:51 EDT 2000


[Barry A. Warsaw]
> Please be aware that Guido has ruled favorably on PEP 214, the
> extended print statement.  This feature has been accepted as described
> in the PEP[1] and is now checked into the Python 2.0 development
> tree.

... Well, I'm stunned ...

I thought I was escaping from Perl, The Land Of White Noise, Special Cases And Inconsistency (I finally secured myself a job writing Python :)


Given that print has almost-function-like arguments (it looks like it takes a tuple of arguments, just like a function, except without the brackets) ... why not go for something a little more extensible and intuitively consistent ...

>>> print foo, bar, baz, file=logfile

.. you could then ...

>>> print foo, bar, baz, file=logfile, sep=':'


I really must get into these Python development discussions much earlier on now that I have a vested interest...


    Richard






More information about the Python-list mailing list