Is this PEP-able? fwhile

Ian Kelly ian.g.kelly at gmail.com
Tue Jun 25 11:58:52 EDT 2013


On Mon, Jun 24, 2013 at 2:33 PM,  <jimjhb at aol.com> wrote:
> Ian,
>
> Regarding your first message breaks are anathema (for many) and your other
> alternative is complicated.
>
> Regarding your second post, anding of lists is allowed, but generally
> returns non-utile results, but point taken.
> I guess technically it could be the last statement, with the condition just
> being ListD in your example.  To make
> the condition more complex (in your example) you'd have to add parens.

I'd probably have gone with the first "and".  The condition is more
likely to use ands than the iterable, and also I expect it would be
easier to parse with the simple rule that the first "and" divides it.
The ambiguity is nonetheless a black mark against the syntax.



More information about the Python-list mailing list