Programming intro book ch1 and ch2 (Windows/Python 3) - Request For Comments

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sat Dec 19 00:41:51 EST 2009


On Fri, 18 Dec 2009 21:29:27 -0600, John Bokma wrote:

> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:
> 
>> CPython 2.5 and on has a keyhole optimizer that replaces many constant
>                           ^^^^^^^
> Shouldn't that be peephole?

Alternate names for the same thing.


>> expressions with pre-computed values.
> 
> And that's called constant folding.

Yes.

> Unless I misread your post (or have been out of touch with compiler
> building too long)

No :)



-- 
Steven



More information about the Python-list mailing list