[Python-ideas] PEP 355 (overloading boolean operations) and chained comparisons

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Oct 20 00:25:06 CEST 2011


Raymond Hettinger wrote:

> In a way, the and/or/not overloading suggestion is worse
> than rich comparisons because even the simplest
> "a and b" expression would have to be compiled in
> a profoundly different way (and the related peephole
> optimizations would not longer be valid).

What peephole optimisations are currently applied
to boolean expressions?

-- 
Greg



More information about the Python-ideas mailing list