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

Samuele Pedroni pedronis at bluewin.ch
Sat Feb 8 20:13:32 EST 2003


"Andrew Dalke" <adalke at mindspring.com> ha scritto nel messaggio
news:b249u8$1et$1 at slb2.atl.mindspring.net...
> Samuele Pedroni:
> > I sympathize but the question is really what you prefer your target
group
> to
> > encounter:
> >
> > 1) sys.exit(errs and 1 or 0)
> >     style = bold and "bold" or "italic"
> >
> > or
> >
> > 2) sys.exit(1 if errs else 0)
> >     style = "bold" if  bold else "italic"
> >
> > because (1) idioms are used in practice.
>
> Huh?  I would prefer neither.  I would rather have
>

so you they never look at the code of the libraries they use, or you dictate
the style of all of them?






More information about the Python-list mailing list