Re: print there!

2005-09-21 Thread Godwin Burby
i didn't notice it and i'm really sorry. it works beautifully! thanks once again :) -- http://mail.python.org/mailman/listinfo/python-list

Re: print there!

2005-09-21 Thread davbrow
It's possible you will need to run python -u for this to behave as expected. Otherwise python may buffer the output until it sees a newline so you only see the last result. -- David -- http://mail.python.org/mailman/listinfo/python-list

Re: print there!

2005-09-21 Thread Fredrik Lundh
Godwin Burby wrote: > i think u've misunderstood my question. Your solution will print on a > new line as below: > c:\godwin\bl.csv 1 > c:\godwin\bl.csv 2 > c:\godwin\bl.csv 3 > But i want this number to diplay their value increase on the same line > on the same sport itself without printing the f

Re: print there!

2005-09-20 Thread Steven D'Aprano
On Tue, 20 Sep 2005 14:06:23 +0200, Fredrik Lundh wrote: > 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 >> ^ >> B

Re: print there!

2005-09-20 Thread Godwin Burby
thanks :) It works beautifully. -- http://mail.python.org/mailman/listinfo/python-list

Re: print there!

2005-09-20 Thread Godwin Burby
i think u've misunderstood my question. Your solution will print on a new line as below: c:\godwin\bl.csv 1 c:\godwin\bl.csv 2 c:\godwin\bl.csv 3 But i want this number to diplay their value increase on the same line on the same sport itself without printing the filename multiple times on multiple

Re: print there!

2005-09-20 Thread Fredrik Lundh
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

print there!

2005-09-20 Thread Godwin Burby
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 enume