[Python-Dev] list of constants -> tuple of constants

Raymond Hettinger python at rcn.com
Sun Feb 6 19:15:30 CET 2005

> I think I implemented this once.  I'll try to see if I can find a
> patch.  It wasn't too difficult, but I'm not sure if the patch was
> clean.

If the opportunity arises, another worthwhile peepholer buildout would
be to recognize if-elif chains that can be transformed to a single
lookup and dispatch (see MAL's note in pep 275).


More information about the Python-Dev mailing list