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> -- http://mail.python.org/mailman/listinfo/python-list