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:03:08
SpamBayes Score 0.0062100026
Marked as misclassified No
Message-id <1203904989.69.0.76677574892.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-02-25 02:03:09nnorwitzsetspambayes_score: 0.00621 -> 0.0062100026
recipients: + nnorwitz
2008-02-25 02:03:09nnorwitzsetspambayes_score: 0.00621 -> 0.00621
messageid: <1203904989.69.0.76677574892.issue2181@psf.upfronthosting.co.za>
2008-02-25 02:03:09nnorwitzlinkissue2181 messages
2008-02-25 02:03:08nnorwitzcreate