Printing dots in single-line
mwh at python.net
Mon Dec 1 19:32:13 CET 2003
"Rainer Deyke" <rainerd at eldwood.com> writes:
> Alok Singhal wrote:
> > Incidentally, I saw other responses, and most of them suggest
> > sys.stdout.write(). Is there a reason that is preferable over the
> > solution above?
> Yes: the print statement is an abomination.
I mean, just take a look at Joe Strout's brilliant little "python
for beginners" page. Replace all print-statements with
sys.stdout.write( string.join(map(str, args)) + "\n") and you
surely won't get any new beginners. And That Would Be A Very Bad
-- Fredrik Lundh, 27 Aug 1996
: Giant screaming pieces of excrement, they are.
I have a feeling that some of the people in here have a
MUCH more exciting time relieving themselves than I do.
-- Mike Sphar & Dave Brown, asr
More information about the Python-list