"Jake" <[EMAIL PROTECTED]> wrote:

> in c and c++ there is a useful way to refresh an output line in printf
> and cout using \r meta command.

that's a control character that's printed to the terminal by printf/cout,
not a "C or C++ meta command"

to print the same character in Python, use the same character escape:

    print "\r", count,

(note that if this works or not depends on the terminal you're sending the
output to.  most ordinary terminals handle it just fine, but if you're sending
output to an IDE console window, it may not work as expected)

</F> 



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to