Re: Automatic increment

2006-11-30 Thread John Machin
Gheorghe Postelnicu wrote: > Hi, > > I have a situation of the following type: > > for line in lineList: > for item in line.split() > myArray[counter, itemCounter] What do you imagine that the above line is doing? Alternatively, should you be posting in comp.lang.somelanguageotherthan

Re: Automatic increment

2006-11-30 Thread Neil Cerutti
On 2006-11-30, Thomas Ploch <[EMAIL PROTECTED]> wrote: > Gheorghe Postelnicu schrieb: >> Hi, >> >> I have a situation of the following type: >> >> for line in lineList: >> for item in line.split() >> myArray[counter, itemCounter] >> itemCounter = itemCounter + 1 >> counter

Re: Automatic increment

2006-11-30 Thread Thomas Ploch
Gheorghe Postelnicu schrieb: > Hi, > > I have a situation of the following type: > > for line in lineList: > for item in line.split() > myArray[counter, itemCounter] > itemCounter = itemCounter + 1 > counter = counter +1 > > Is there a way to get rid of the manual increme

Re: Automatic increment

2006-11-30 Thread [EMAIL PROTECTED]
Gheorghe Postelnicu wrote: > Hi, > > I have a situation of the following type: > > for line in lineList: > for item in line.split() > myArray[counter, itemCounter] > itemCounter = itemCounter + 1 > counter = counter +1 > > Is there a way to get rid of the manual incrementat

Automatic increment

2006-11-30 Thread Gheorghe Postelnicu
Hi, I have a situation of the following type: for line in lineList: for item in line.split() myArray[counter, itemCounter] itemCounter = itemCounter + 1 counter = counter +1 Is there a way to get rid of the manual incrementation of the 2 counters? Thanks, -- Gheorghe Po