[Python-3000] Wither PEP 335 (Overloadable Boolean Operators)?
Jason Orendorff
jason.orendorff at gmail.com
Sun May 20 05:46:22 CEST 2007
On 5/19/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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?
Look in Python/peephole.c, function PyCode_Optimize(). Search for
"case JUMP_IF_FALSE". There's a nice comment immediately
preceding that line.
-j
More information about the Python-3000
mailing list