[Python-Dev] Re: Prospective Peephole Transformation

Raymond Hettinger python at rcn.com
Fri Feb 18 15:58:10 CET 2005

> I'm unclear why the list in "for x in [1,2,3]" or "if x not in
> can't fairly easily be recognized as a constant and just be placed in
> constants array. 

That part got done (at least for the if-statement).

The question is whether the type transformation idea should be carried a
step further so that a single step search operation replaces the linear


More information about the Python-Dev mailing list