Questions: While And List Comprehension

James Mills prologic at
Thu Nov 11 06:18:43 CET 2010

On Thu, Nov 11, 2010 at 3:05 PM, rantingrick <rantingrick at> wrote:
> Hey all you guys could be mistaken. It looks like the OP is trying to
> implement some sort of ghetto database. And he may NOT necessarily
> want the FIRST five lines of the file. He said (and i quote) "the
> values /between/ # and #". Where # and # are starting and ending of a
> range -- not necessarily the starting of the input file! However we
> really need the OP to clear up these questions!

Valid point Rick. And yes my earlier post was very wrong :/

My follow-up (after realizing my mistake) might be better (using islice).


-- James Mills
-- "Problems are solved by method"

More information about the Python-list mailing list