For review: PEP 308 - If-then-else expression

Samuele Pedroni pedronis at bluewin.ch
Mon Feb 10 14:25:15 EST 2003


"Samuele Pedroni" <pedronis at bluewin.ch> ha scritto nel messaggio
news:3e47fc83_5 at news.bluewin.ch...
>
> "Andrew Koenig" <ark at research.att.com> ha scritto nel messaggio
> news:yu99vfzsq7tn.fsf at europa.research.att.com...
>
> > This code works as written, but only by coincidence.  If, for example,
> > I were to change the initialization of d to
> >
> >         d = {"": 0, "one": 1, "two": 2, "three": 3}
> >
> > then the code would break.
>
> this one is ROFL provoking.
>
> Honestly, please, you have already found a bug, declare victory and stop.

or you could start a more interesting exercise, searching and fishing for
reports of people burnt by _ and _ or _ .






More information about the Python-list mailing list