[Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?

Greg Ewing greg.ewing at canterbury.ac.nz
Sun May 20 02:32:58 CEST 2007

Raymond Hettinger wrote:

> FWIW, the peephole optimizer takes advantage of the current meaning
> of and/or to generate faster code.

Can you give some examples of the sort of optimisations
that are done? It may still be possible to do them --
the AND1 and OR1 bytecodes in my proposal are conditional
branch instructions, much like the existing boolean operator


More information about the Python-3000 mailing list