setvbuf() ??

Alex Martelli aleaxit at yahoo.com
Thu Mar 29 09:25:23 EST 2001


"Bruce Wolk" <bawolk at ucdavis.edu> wrote in message
news:3AC29961.9937EC59 at ucdavis.edu...
> Putting a trailing comma after the print statement eliminates the newline,
but
> adds a trailing space.  Would periods separated by spaces work?
>
> I would be curious if anyone knows how to eliminate the trailing space.

The simplest way is probably

    import sys
    sys.stdout.write('.')


Alex






More information about the Python-list mailing list