Thanks
On Oct 19, 3:57 pm, "J. Cliff Dyer" wrote:
> On 10/19/2011 10:49 AM, Guy Nesher wrote:
>
>
>
>
>
>
>
>
>
> > I have an odd problem tracking errors in a for loop
> > I assign a loop counter to each error and print them at the end of the
> > loop, but all the errors are numbered to the last
On 10/19/2011 10:49 AM, Guy Nesher wrote:
I have an odd problem tracking errors in a for loop
I assign a loop counter to each error and print them at the end of the
loop, but all the errors are numbered to the last iteration.
The code goes something like this :
error = [0,[]]
counter = 0
I have an odd problem tracking errors in a for loop
I assign a loop counter to each error and print them at the end of the
loop, but all the errors are numbered to the last iteration.
The code goes something like this :
error = [0,[]]
counter = 0
for row in reader:
counter +=1
try:
#
3 matches
Mail list logo