generator expressions: performance anomaly?

Raymond Hettinger vze4rx4y at
Wed Jan 19 12:52:16 EST 2005

[Steve Holden]
> Since it doesn't yet optimize 2+5 to a constant-folded 7 you should
> realize that you are suggesting a large increase in the compiler's
> analytical powers.

FWIW, limited constant folding is already in CVS for Py2.5.

Raymond Hettinger

More information about the Python-list mailing list