print there!
Fredrik Lundh
fredrik at pythonware.com
Tue Sep 20 08:06:23 EDT 2005
Godwin Burby wrote:
> print 'c:\godwin\bl.csv',
> for i,row in enumerate(reader):
> # inserts or updates the database
> print i,
> This displays on the screen as :
> c:\godwin\bl.csv 1 2 3 4 5 6 7 8
> ^
> But i want it to show the above numbers on the same spot denoted by the
> carat character. Can it be done with print statement or any other trick?
carriage return is your friend:
filename = 'c:\\godwin\\bl.csv',
for i,row in enumerate(reader):
# inserts or updates the database
print "\r" + filename, i,
print
</F>
More information about the Python-list
mailing list