having both dynamic and static variables

Gregory Ewing greg.ewing at canterbury.ac.nz
Sun Mar 6 18:28:59 EST 2011


John Nagle wrote:

> "let" allows the usual optimizations - constant folding, hoisting
> out of loops, compile time arithmetic, unboxing, etc.

Only if the compiler knows the value of the constant,
which it won't if it's defined in a different module.

-- 
Greg



More information about the Python-list mailing list