Explorar el Código

Fixing nlocals

master
Ben Kurtovic hace 12 años
padre
commit
83562a2e83
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      func_smash.py

+ 1
- 1
func_smash.py Ver fichero

@@ -15,7 +15,7 @@ def make_chain(funcs):

def make_function(chain, name, argcount=1):
codes, constants, varnames = _make_codes(chain)
nlocals = len(varnames) + argcount
nlocals = len(varnames)
stacksize = 1024 # High limit?
flags = 0 # Denotes funcs with *args and/or **kwargs; nothing for now
codestring = "".join([chr(code) for code in codes])


Cargando…
Cancelar
Guardar