On 9/2/05, Ron Adam <[EMAIL PROTECTED]> wrote:
> Jim Jewett wrote:
> > Putting the spaces back in (without a format string) would
> > be even worse. Charles Cazabon's pointed out that it *could*
> > be as simple as
> >
> > writeln(' '.join( ... ))
>
> Why not just offer an addition method ?
>
> examine(x,y,z) # print with spaces
Because we're now up to *four* stream methods, plus the same number of
builtins, to do what one statement currently does?
(BTW, the ' '.join() idiom has a minor disadvantage in that it
*builds* the output string, whereas print doesn't. Not a major issue,
given the typical sizes of strings to be output, but it's another cost
nevertheless...)
Paul.
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com