Adventures in Currying

Nick Mathewson nickm at mit.edu
Sun May 14 20:45:12 EDT 2000


On Mon, 15 May 2000 00:43:47 GMT, Nick Mathewson <nickm at mit.edu> wrote:
 [describing bytecodehacks.xapply]
>Merciful <deity>!  Your code seems to be looking at which instructions
>you're replacing, and gathering up all the loads and stores that refer
>to them.  Then it replaces the ones which are never loaded with
>constants, and replaces all the ones that _do_ get loaded with new
>variables that are initialized at the start of the function.  

Err-- I should have said -- "Then it replaces the ones which are never
*modified* with constands, and replaces all the ones that _do_ get
*modified* with new variables that are initialized at the start of the
function.

>It adds
>the constants to the method's constant list, and reindexes all the
>local variables.  It is amazing.



More information about the Python-list mailing list