Print formatting - same line printing?
Phil
pharris at crosswinds.net
Sun Jun 4 08:50:53 EDT 2000
print "Uploaded %s bytes\r" % byte_count ,
The imprtant bits are the \r and the comma at the end. Miss one or the
other and it won't work.
hth
Phil
phil DOT harris AT zope DOT co DOT uk
"Bablos" <angband at blueyonder.co.uk> wrote in message
news:393A38E9.MD-1.4.4.angband at blueyonder.co.uk...
> Hi There...
>
> Now that I've got my FTP client doing some basic stuff, I now have a
> progress report which looks something like the following;
>
> uploaded X bytes
> uploaded Y bytes
> uploaded Z bytes
>
> Is there a way that I can get Python to print this all on the same
> line, so that it looks as if the line is being updated constantly, as
> opposed to having a ridiculously long list of 'uploaded...' lines?
>
> Hope someone can help.
>
>
> Bablos.
More information about the Python-list
mailing list