¡@

Home 

python Programming Glossary: load_deref

Accessing class variables from a list comprehension in the class definition

http://stackoverflow.com/questions/13905741/accessing-class-variables-from-a-list-comprehension-in-the-class-definition

LOAD_FAST 0 .0 6 FOR_ITER 12 to 21 9 STORE_FAST 1 i 12 LOAD_DEREF 0 x 15 LIST_APPEND 2 18 JUMP_ABSOLUTE 6 21 RETURN_VALUE The.. x 15 LIST_APPEND 2 18 JUMP_ABSOLUTE 6 21 RETURN_VALUE The LOAD_DEREF will indirectly load x from the code object cell objects foo.__code__.co_cellvars..

Python: generator expression vs. yield

http://stackoverflow.com/questions/1995418/python-generator-expression-vs-yield

respect the yield approach uses a LOAD_FAST in place of a LOAD_DEREF inside the loop. The LOAD_DEREF is rather slower than LOAD_FAST.. a LOAD_FAST in place of a LOAD_DEREF inside the loop. The LOAD_DEREF is rather slower than LOAD_FAST so it makes the yield version.. 1 i 12 SETUP_LOOP 31 to 46 15 LOAD_GLOBAL 0 xrange 18 LOAD_DEREF 0 y 21 CALL_FUNCTION 1 24 GET_ITER 25 FOR_ITER 17 to 45 28 STORE_FAST..

Python function local name binding from an outer scope

http://stackoverflow.com/questions/3908335/python-function-local-name-binding-from-an-outer-scope

You have to reassemble the bytecode of the function to use LOAD_DEREF instead of LOAD_GLOBAL and generate a cell for each value. You..

python factory functions compared to class

http://stackoverflow.com/questions/901892/python-factory-functions-compared-to-class

10 RETURN_VALUE act maker 3 dis act 3 0 LOAD_FAST 0 X 3 LOAD_DEREF 0 N 6 BINARY_MULTIPLY 7 RETURN_VALUE share improve this..