Conditional iteration

Gabriel Genellina gagsl-py at yahoo.com.ar
Wed Dec 13 14:03:21 EST 2006


> I just need to get work done and I see this type of conditional iteration
> showing up many times obscuring my code because of the additional
> indentation.

Me too. When I don't like the additional indentation I usually have:
if not condition: continue
at the beginning of the block

> In line with previous syntax improvements made in Python my proposal (or
> obvious variants) seems a logical next step. Unless of course nobody
> appreciates it. That's the discussion I'd like to have here in the forum.

Looks good to me.

-- 
Gabriel Genellina




More information about the Python-list mailing list