Home | Trees | Indices | Help |
|
---|
|
Optimize globals in certain functions by binding their names to values provided in a dictionnary. :copyright: 2002-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr :license: General Public License version 2 - http://www.gnu.org/licenses
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
LOAD_GLOBAL = 116
|
|
LOAD_CONST = 100
|
|
EXTENDED_ARG = 143
|
|
STORE_GLOBAL = 97
|
|
builtins = __builtins__.__dict__
|
|
bind_code_opt = bind(bind_code_opt, globals())
|
Function Details |
Take a code object and a dictionnary and returns a new code object where the opcodes LOAD_GLOBAL are replaced by LOAD_CONST whenever the global's name appear in the dictionnary |
Returns a new function whose code object has been bound by bind_code() |
Take a code object and a dictionnary and returns a new code object where the opcodes LOAD_GLOBAL are replaced by LOAD_CONST whenever the global's name appear in the dictionnary |
Take a code object and a dictionnary and returns a new code object where the opcodes LOAD_GLOBAL are replaced by LOAD_CONST whenever the global's name appear in the dictionnary |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jun 4 19:39:02 2009 | http://epydoc.sourceforge.net |