[Python-3000] Wither PEP 335 (Overloadable Boolean Operators)? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sun May 20 02:32:58 CEST 2007
- Previous message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Next message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 bytecodes.
-- Greg
- Previous message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Next message: [Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]