예제 #1
0
 def __init__(self, func, klass, storage_w, w_this=None, static=False):
     assert isinstance(func, Function)
     self._func = func
     self.closure_args = [None] * len(func.closuredecls)
     W_InstanceObject.__init__(self, klass, storage_w)
     self.w_this = w_this
     self.static = static
예제 #2
0
 def __init__(self, func, klass, storage_w, w_this=None, static=False):
     assert isinstance(func, Function)
     self._func = func
     self.closure_args = [None] * len(func.closuredecls)
     W_InstanceObject.__init__(self, klass, storage_w)
     self.w_this = w_this
     self.static = static
예제 #3
0
파일: php_dir.py 프로젝트: youaani/hippyvm
 def __init__(self, klass, dct_w):
     W_InstanceObject.__init__(self, klass, dct_w)
예제 #4
0
 def __init__(self, klass, dct_w):
     W_InstanceObject.__init__(self, klass, dct_w)
예제 #5
0
 def __init__(self, func, klass, dct_w):
     assert isinstance(func, Function)
     self._func = func
     self.closure_args = [None] * (len(func.names) - len(func.types))
     W_InstanceObject.__init__(self, klass, dct_w)
예제 #6
0
 def __init__(self, func, klass, dct_w):
     assert isinstance(func, Function)
     self._func = func
     self.closure_args = [None] * (len(func.names) - len(func.types))
     W_InstanceObject.__init__(self, klass, dct_w)