print there!

Godwin Burby godwinburby at gmail.com
Tue Sep 20 07:32:35 EDT 2005


Dear Pythoneer,
     I am writing a python script which inserts or updates a database
from a csv file. i've done the functionality. But i would to like to
show the user the current row being inserted or updated in the screen.
This can be done as follows:
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?




More information about the Python-list mailing list