On Sun, Feb 24, 2008 at 6:27 PM, Neal Norwitz <[EMAIL PROTECTED]> wrote: > Short description (see http://bugs.python.org/issue2181 for the patch > and more details): > > Optimize code like: > x = any_expression > return x > > to: > 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 > files?
I don't see how this is any more aggressive than what the peepholer already does, so I see no issue with it being used in .pyc files. -Brett _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com