(a==b) ? 'Yes' : 'No'

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Apr 5 02:08:31 CEST 2010

Steven D'Aprano wrote:

> Not according to the PEP. No fewer than 16 alternatives were put to a 
> vote, and with no clear winner (but many obvious losers) Guido made the 
> final decision.

As I remember, the decision made on the basis of the vote
was *not* to add a conditional expression at all, because of
the fact that there was no clear winner.

It was some time later that Guido suddenly announced out of
the blue that he was accepting one of the choices that he had
earlier said he didn't like!

The ways of the BDFL are strange indeed. :-)


More information about the Python-list mailing list