Proposed PEP for a Conditional Expression

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Wed Sep 12 16:16:50 CEST 2001


Wed, 12 Sep 2001 13:56:09 +0200, Alex Martelli <aleax at aleax.it> pisze:

> I think the proposed conditional operator would be just about at
> the threshold (I wouldn't particularly care either way if it got in
> or stayed out) EXCEPT for the risk that it may in fact encourage
> people to write more lambda's rather than named local functions,
> which I see as a substantial minus.

If we prefer list comprehensions to for loops with appends,
in this case it encourages in the right direction.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list