Author rhettinger
Recipients
Date 2005-02-20.15:41:48
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The folds the two steps into a new opcode.  In the case
of store_name/load_name, it saves one three byte
instruction, a trip around the eval-loop, two stack
mutations, a incref/decref pair, a dictionary lookup,
and an error check (for the lookup).  While it acts
like a dup followed by a store, it is implemented more
simply as a store that doesn’t pop the stack.  The
transformation is broadly applicable and occurs
thousands of times in the standard library and test suite.
History
Date User Action Args
2007-08-23 15:41:56adminlinkissue1144842 messages
2007-08-23 15:41:56admincreate