Re: iterator/generator

2010-03-15 Thread Mark Lawrence
vsoler wrote: I am working on a script that reads data from an excel workbook. The data is located in a named range whose first row contains the headers. It works!!! I find it superb that python is able to do such things!!! Now my questions. a. My ranges can in practice be quite big, and altho

Re: iterator/generator

2010-03-14 Thread Patrick Maupin
First of all, as Steve Holden mentioned, do look at xlrd. It's awesome. Second, for your (a) question, if you want an iterator, that's quite easy: matriz = iter(matriz) matriz.next() # Discard the first one for i in matriz: This technique works really well, especially if you have sub-loops. Th

Re: iterator/generator

2010-03-14 Thread Steve Holden
vsoler wrote: > I am working on a script that reads data from an excel workbook. The > data is located in a named range whose first row contains the headers. > It works!!! I find it superb that python is able to do such things!!! > > Now my questions. > > a. My ranges can in practice be quite bi