[Python-ideas] Assignments in list/generator expressions

Eugene Toder eltoder at gmail.com
Mon Apr 11 06:16:08 CEST 2011


On Mon, Apr 11, 2011 at 12:10 AM, Westley Martínez <anikom15 at gmail.com> wrote:
> Semi-colon is already in use and to me (perhaps because of C) tells me
> they are unrelated statements. where to me seems the more Pythonic.

Right, keyword is definitely more Pythonic. The problem with 'where'
is that it's already used as identifier by various SQL frameworks,
which is why PEP 3150 uses 'given' instead.

Eugene



More information about the Python-ideas mailing list