Пример #1
0
 def __init__(self, space, name, flags, klass=None):
     W_Object.__init__(self, space, klass)
     namestr = '[current process]' if name is None else name
     # on my os it's libc.so.6, not just libc.so
     if name == 'libc.so': name = 'libc.so.6'
     try:
         self.cdll = clibffi.CDLL(name, flags)
     except clibffi.DLOpenError:
         raise space.error(space.w_LoadError,
                           "Could not open library %s" % namestr)
     self.set_instance_var(space, '@name', space.newsymbol(namestr))
Пример #2
0
 def __init__(self, space, bytecode, w_self, lexical_scope, cells, block,
              parent_interp, regexp_match_cell, is_lambda):
     W_Object.__init__(self, space)
     self.bytecode = bytecode
     self.w_self = w_self
     self.lexical_scope = lexical_scope
     self.cells = cells
     self.block = block
     self.parent_interp = parent_interp
     self.regexp_match_cell = regexp_match_cell
     self.is_lambda = is_lambda
Пример #3
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.w_block = None
     self.sthread = None
     self.parent_fiber = None
Пример #4
0
 def __init__(self, space, typeindex=0, rw_strategy=None, klass=None):
     assert isinstance(typeindex, int)
     W_Object.__init__(self, space, klass)
     self.typeindex = typeindex
     self.rw_strategy = rw_strategy
Пример #5
0
 def __init__(self, space):
     W_Object.__init__(self, space)
Пример #6
0
 def __init__(self, space, storage, strategy):
     W_Object.__init__(self, space)
     self.str_storage = storage
     self.strategy = strategy
Пример #7
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.open = False
     self.path = None
Пример #8
0
 def __init__(self, space):
     W_Object.__init__(self, space)
     self.w_info = None
     self.w_handle = None
Пример #9
0
 def __init__(self, space, symbol):
     W_Object.__init__(self, space)
     self.symbol = symbol
Пример #10
0
 def __init__(self, space, regexp, ctx):
     W_Object.__init__(self, space)
     self.regexp = regexp
     self.ctx = ctx
     self._flatten_cache = None
Пример #11
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.w_block = None
     self.sthread = None
     self.parent_fiber = None
 def __init__(self, space):
     W_Object.__init__(self, space)
     self.w_info = None
     self.w_handle = None
Пример #13
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.w_default = space.w_nil
     self.default_proc = None
     self.dict = OrderedHash(space.hash_w, space.eq_w)
Пример #14
0
 def __init__(self, space, klass):
     W_Object.__init__(self, space, klass)
     self._set_epoch_seconds(0.0)
     self._set_offset(0)
Пример #15
0
 def __init__(self, space, block, is_lambda):
     W_Object.__init__(self, space)
     self.block = block
     self.is_lambda = is_lambda
Пример #16
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.layout = None
     self.ffi_struct = None
     self.name_to_index = {}
Пример #17
0
 def __init__(self, space, typeindex=0, rw_strategy=None, klass=None):
     assert isinstance(typeindex, int)
     W_Object.__init__(self, space, klass)
     self.typeindex = typeindex
     self.rw_strategy = rw_strategy
Пример #18
0
 def __init__(self, space, source, flags):
     W_Object.__init__(self, space)
     self.set_source(space, source, flags)
Пример #19
0
 def __init__(self, space, regexp, ctx):
     W_Object.__init__(self, space)
     self.regexp = regexp
     self.ctx = ctx
     self._flatten_cache = None
Пример #20
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.open = False
     self.path = None
Пример #21
0
 def __init__(self, space, d):
     W_Object.__init__(self, space)
     self.iterator = d.iteritems()
Пример #22
0
 def __init__(self, space, w_owner, w_function, w_receiver):
     W_Object.__init__(self, space)
     self.w_owner = w_owner
     self.w_function = w_function
     self.w_receiver = w_receiver
Пример #23
0
 def __init__(self, space):
     W_Object.__init__(self, space)
     # TODO: This should be a map dict.
     self.local_storage = {}
Пример #24
0
 def __init__(self, space, w_owner, w_function):
     W_Object.__init__(self, space)
     self.w_owner = w_owner
     self.w_function = w_function
Пример #25
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.msg = ""
     self.frame = None
     self.w_backtrace = None
Пример #26
0
 def __init__(self, space):
     W_Object.__init__(self, space)
     self.is_initialized = False
Пример #27
0
 def __init__(self, space):
     W_Object.__init__(self, space)
     self.is_initialized = False
Пример #28
0
 def __init__(self, space):
     W_Object.__init__(self, space)
     self.fd = -1
     self.stream = None
Пример #29
0
 def __init__(self, space, klass):
     W_Object.__init__(self, space, klass)
     self.epoch_seconds = 0
Пример #30
0
 def __init__(self, space, seed=0, klass=None):
     W_Object.__init__(self, space, klass)
     self.w_seed = None
     self.random = Random(abs(seed))
Пример #31
0
 def __init__(self, space):
     W_Object.__init__(self, space)
     self.fd = -1
Пример #32
0
 def __init__(self, space, klass):
     W_Object.__init__(self, space, klass)
     self.epoch_seconds = 0
Пример #33
0
 def __init__(self, space, seed=0, klass=None):
     W_Object.__init__(self, space, klass)
     self.w_seed = None
     self.random = Random(abs(seed))
Пример #34
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.random = Random()
Пример #35
0
 def __init__(self, space, w_owner, w_function, w_receiver):
     W_Object.__init__(self, space)
     self.w_owner = w_owner
     self.w_function = w_function
     self.w_receiver = w_receiver
Пример #36
0
 def __init__(self, space, w_owner, w_function):
     W_Object.__init__(self, space)
     self.w_owner = w_owner
     self.w_function = w_function
Пример #37
0
 def __init__(self, space, klass):
     W_Object.__init__(self, space, klass)
     self._set_epoch_seconds(0.0)
     self._set_offset(0)
Пример #38
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.contents = OrderedDict(space.eq_w, space.hash_w)
     self.w_default = space.w_nil
     self.default_proc = None
Пример #39
0
 def __init__(self, space, source, flags):
     W_Object.__init__(self, space)
     self.set_source(space, source, flags)
Пример #40
0
 def __init__(self, space, d):
     W_Object.__init__(self, space)
     self.iterator = d.iteritems()
Пример #41
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.contents = OrderedDict(space.eq_w, space.hash_w)
     self.w_default = space.w_nil
     self.default_proc = None
Пример #42
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.msg = ""
     self.frame = None
Пример #43
0
 def __init__(self, space, storage, strategy, klass=None):
     W_Object.__init__(self, space, klass)
     self.str_storage = storage
     self.strategy = strategy
Пример #44
0
 def __init__(self, space, names, cells, w_self, lexical_scope):
     W_Object.__init__(self, space)
     self.names = names
     self.cells = cells
     self.w_self = w_self
     self.lexical_scope = lexical_scope
Пример #45
0
 def __init__(self, space, names, cells, w_self, lexical_scope):
     W_Object.__init__(self, space)
     self.names = names
     self.cells = cells
     self.w_self = w_self
     self.lexical_scope = lexical_scope
Пример #46
0
 def __init__(self, space, w_start, w_end, exclusive):
     W_Object.__init__(self, space)
     self.w_start = w_start
     self.w_end = w_end
     self.exclusive = exclusive
Пример #47
0
 def __init__(self, space, w_start, w_end, exclusive):
     W_Object.__init__(self, space)
     self.w_start = w_start
     self.w_end = w_end
     self.exclusive = exclusive
Пример #48
0
 def __init__(self, space, symbol):
     W_Object.__init__(self, space)
     self.symbol = symbol
Пример #49
0
 def __init__(self, space, block, is_lambda):
     W_Object.__init__(self, space)
     self.block = block
     self.is_lambda = is_lambda
Пример #50
0
 def __init__(self, space, storage, strategy, klass=None):
     W_Object.__init__(self, space, klass)
     self.str_storage = storage
     self.strategy = strategy
Пример #51
0
 def __init__(self, space, items_w):
     W_Object.__init__(self, space)
     self.items_w = items_w
Пример #52
0
 def __init__(self, space, items_w, klass=None):
     W_Object.__init__(self, space, klass)
     self.items_w = items_w
Пример #53
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.strategy = space.fromcache(ObjectDictStrategy)
     self.dict_storage = self.strategy.get_empty_storage(space)
     self.w_default = space.w_nil
     self.default_proc = None
Пример #54
0
 def __init__(self, space):
     W_Object.__init__(self, space)
     # TODO: This should be a map dict.
     self.local_storage = {}
Пример #55
0
 def __init__(self, space, items_w, klass=None):
     W_Object.__init__(self, space, klass)
     self.items_w = items_w
Пример #56
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.strategy = space.fromcache(ObjectDictStrategy)
     self.dict_storage = self.strategy.get_empty_storage(space)
     self.w_default = space.w_nil
     self.default_proc = None