This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nnorwitz
Recipients nnorwitz
Date 2008-02-25.02:22:43
SpamBayes Score 0.0062100026
Marked as misclassified No
Message-id <1203906164.79.0.636913059624.issue2181@psf.upfronthosting.co.za>
In-reply-to
Content
I forgot to mention that if another loop was added to PyCode_Optimize
that kept track of the # of times each local variable was
LOAD_FAST/STORE_FAST/DELETE_FAST and that the count was 2, we could
perform a similar optimization without requiring the return.

Bonus points for other cases like if it was the last use inside a list
comprehension or the variable is otherwise unaccessible.
History
Date User Action Args
2008-03-20 04:21:38jafounlinkissue2181 messages
2008-02-25 02:22:45nnorwitzsetspambayes_score: 0.00621 -> 0.0062100026
recipients: + nnorwitz
2008-02-25 02:22:44nnorwitzsetspambayes_score: 0.00621 -> 0.00621
messageid: <1203906164.79.0.636913059624.issue2181@psf.upfronthosting.co.za>
2008-02-25 02:22:43nnorwitzlinkissue2181 messages
2008-02-25 02:22:43nnorwitzcreate