Re: comple list slices
- From: William Meyer <wmmeyer@xxxxxxxxx>
- Date: Tue, 28 Feb 2006 16:48:49 +0000 (UTC)
<johnzenger <at> gmail.com> writes:
Python lets you iterate through a list using an integer index, too,
although if you do so we will make fun of you. You can accomplish it
with a while loop, as in:
i = 0
while i < len(rows):
if rows[i] == "This code looks like BASIC without the WEND, doesn't
it?":
ahh, that would work. Yea its really ugly too. I will probably just use the
shandy.b's suggestion squirreled away in a method. I shouldnt even care, its
just one extra conditional per row
.
- Follow-Ups:
- Re: comple list slices
- From: johnzenger
- Re: comple list slices
- References:
- comple list slices
- From: William Meyer
- Re: comple list slices
- From: johnzenger
- comple list slices
- Prev by Date: Re: comple list slices
- Next by Date: Re: Best python module for Oracle, but portable to other RDBMSes
- Previous by thread: Re: comple list slices
- Next by thread: Re: comple list slices
- Index(es):
Relevant Pages
|