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

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 incrementation of the

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 incrementation of

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 = counter +1 Is

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.somelanguageotherthanPython