[Python-Dev] optimizing out local variables

Neal Norwitz nnorwitz at gmail.com
Mon Feb 25 03:27:40 CET 2008

Short description (see http://bugs.python.org/issue2181 for the patch
and more details):

Optimize code like:
   x = any_expression
   return x

   return any_expression

The local variable x is no longer set before returning.  Is this
appropriate for .pyc generation or should it only be done for .pyo


More information about the Python-Dev mailing list