Short-circuit Logic

Chris Angelico rosuav at gmail.com
Thu May 30 22:29:26 EDT 2013


On Fri, May 31, 2013 at 10:13 AM, Rick Johnson
<rantingrickjohnson at gmail.com> wrote:
> What if you need to perform operations on a sequence (more than once) in a non-linear fashion? What if you need to modify the sequence whilst looping? In many cases your simplistic "for loop" will fail miserably.


What has this to do with the original question of iterating across
integers? What you're now saying is that both the meaning of the
current index and the top boundary can change during iteration; that's
unrelated to whether to use equality or inequality for comparisons.

Oh wait. Rick's back. He's been away so long that I stopped looking
for his name in the headers.

ChrisA



More information about the Python-list mailing list