[Python-Dev] Third milestone of FAT Python

MRAB python at mrabarnett.plus.com
Fri Dec 4 14:16:49 EST 2015


On 2015-12-04 12:49, Victor Stinner wrote:
[snip]

> Constant folding
> ================
>
> This optimization propagates constant values of variables. Example:
>
>      def func()
>          x = 1
>          y = x
>          return y
>
> Constant folding:
>
>      def func()
>          x = 1
>          y = 1
>          return 1
>
[snip]

I don't think that's constant folding, but constant _propagation_.

Constant folding is when, say, "1 + 2" replaced by "2".



More information about the Python-Dev mailing list