コード例 #1
0
 def copy_instance_vars(self, space, w_other):
     """Copies special instance vars after #copy or #dup"""
     assert isinstance(w_other, W_ExceptionObject)
     W_Object.copy_instance_vars(self, space, w_other)
     self.msg = w_other.msg
     self.frame = w_other.frame
     self.w_backtrace = w_other.w_backtrace
コード例 #2
0
ファイル: dynamic_library.py プロジェクト: fniephaus/topaz
 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))
コード例 #3
0
ファイル: procobject.py プロジェクト: Freidrichs/topaz
 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
コード例 #4
0
ファイル: procobject.py プロジェクト: matt-porter/topaz
 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
コード例 #5
0
ファイル: bindingobject.py プロジェクト: Fleurer/topaz
 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
コード例 #6
0
ファイル: stringobject.py プロジェクト: dadadadave/topaz
 def __init__(self, space, storage, strategy, klass=None):
     W_Object.__init__(self, space, klass)
     self.str_storage = storage
     self.strategy = strategy
コード例 #7
0
ファイル: fiberobject.py プロジェクト: Fleurer/topaz
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.w_block = None
     self.sthread = None
     self.parent_fiber = None
コード例 #8
0
ファイル: symbolobject.py プロジェクト: dadadadave/topaz
 def __init__(self, space, symbol):
     W_Object.__init__(self, space)
     self.symbol = symbol
コード例 #9
0
ファイル: fileobject.py プロジェクト: topazproject/topaz
 def __init__(self, space):
     W_Object.__init__(self, space)
     self.is_initialized = False
コード例 #10
0
 def __init__(self, space, regexp, ctx, target):
     W_Object.__init__(self, space)
     self.regexp = regexp
     self.ctx = ctx
     self.target = target
     self._flatten_cache = None
コード例 #11
0
ファイル: randomobject.py プロジェクト: smcabrera/topaz
 def __init__(self, space, seed=0, klass=None):
     W_Object.__init__(self, space, klass)
     self.w_seed = None
     self.random = Random(abs(seed))
コード例 #12
0
 def __init__(self, space, d):
     W_Object.__init__(self, space)
     self.iterator = d.iteritems()
コード例 #13
0
ファイル: randomobject.py プロジェクト: AlekSi/topaz
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.random = Random()
コード例 #14
0
ファイル: timeobject.py プロジェクト: matt-porter/topaz
 def __init__(self, space, klass):
     W_Object.__init__(self, space, klass)
     self.epoch_seconds = 0
コード例 #15
0
 def __init__(self, space):
     W_Object.__init__(self, space)
     self.fd = -1
     self.stream = None
コード例 #16
0
ファイル: methodobject.py プロジェクト: NateBarnes/topaz
 def __init__(self, space, w_owner, w_function):
     W_Object.__init__(self, space)
     self.w_owner = w_owner
     self.w_function = w_function
コード例 #17
0
ファイル: methodobject.py プロジェクト: NateBarnes/topaz
 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
コード例 #18
0
ファイル: rangeobject.py プロジェクト: Freidrichs/topaz
 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
コード例 #19
0
ファイル: timeobject.py プロジェクト: Freidrichs/topaz
 def __init__(self, space, klass):
     W_Object.__init__(self, space, klass)
     self.epoch_seconds = 0
コード例 #20
0
ファイル: stringobject.py プロジェクト: haramako/topaz
 def __init__(self, space, storage, strategy):
     W_Object.__init__(self, space)
     self.str_storage = storage
     self.strategy = strategy
コード例 #21
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.w_block = None
     self.sthread = None
     self.parent_fiber = None
コード例 #22
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)
コード例 #23
0
ファイル: regexpobject.py プロジェクト: Freidrichs/topaz
 def __init__(self, space, regexp, ctx):
     W_Object.__init__(self, space)
     self.regexp = regexp
     self.ctx = ctx
     self._flatten_cache = None
コード例 #24
0
ファイル: hashobject.py プロジェクト: smcabrera/topaz
 def __init__(self, space):
     W_Object.__init__(self, space)
コード例 #25
0
 def __init__(self, space):
     W_Object.__init__(self, space)
     self.w_info = None
     self.w_handle = None
コード例 #26
0
ファイル: procobject.py プロジェクト: emi1337/topaz
 def __init__(self, space, block, is_lambda):
     W_Object.__init__(self, space)
     self.block = block
     self.is_lambda = is_lambda
コード例 #27
0
ファイル: hashobject.py プロジェクト: Alexis-D/topaz
 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
コード例 #28
0
ファイル: timeobject.py プロジェクト: topazproject/topaz
 def __init__(self, space, klass):
     W_Object.__init__(self, space, klass)
     self._set_epoch_seconds(0.0)
     self._set_offset(0)
コード例 #29
0
 def __init__(self, space):
     W_Object.__init__(self, space)
     self.w_info = None
     self.w_handle = None
コード例 #30
0
ファイル: regexpobject.py プロジェクト: Freidrichs/topaz
 def __init__(self, space, source, flags):
     W_Object.__init__(self, space)
     self.set_source(space, source, flags)
コード例 #31
0
ファイル: rangeobject.py プロジェクト: emi1337/topaz
 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
コード例 #32
0
 def method_allocate(self, space):
     return W_Object(space, self)
コード例 #33
0
ファイル: hashobject.py プロジェクト: futoase/topaz
 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
コード例 #34
0
ファイル: hashobject.py プロジェクト: Alexis-D/topaz
 def __init__(self, space, d):
     W_Object.__init__(self, space)
     self.iterator = d.iteritems()
コード例 #35
0
ファイル: timeobject.py プロジェクト: fniephaus/topaz
 def __init__(self, space, klass):
     W_Object.__init__(self, space, klass)
     self._set_epoch_seconds(0.0)
     self._set_offset(0)
コード例 #36
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.open = False
     self.path = None
コード例 #37
0
ファイル: fileobject.py プロジェクト: emi1337/topaz
 def __init__(self, space):
     W_Object.__init__(self, space)
     self.is_initialized = False
コード例 #38
0
 def __init__(self, space):
     W_Object.__init__(self, space)
     # TODO: This should be a map dict.
     self.local_storage = {}
コード例 #39
0
ファイル: arrayobject.py プロジェクト: futoase/topaz
 def __init__(self, space, items_w, klass=None):
     W_Object.__init__(self, space, klass)
     self.items_w = items_w
コード例 #40
0
 def __init__(self, space, symbol):
     W_Object.__init__(self, space)
     self.symbol = symbol
コード例 #41
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
コード例 #42
0
ファイル: procobject.py プロジェクト: emi1337/topaz
 def __init__(self, space, block, is_lambda):
     W_Object.__init__(self, space)
     self.block = block
     self.is_lambda = is_lambda
コード例 #43
0
ファイル: randomobject.py プロジェクト: Freidrichs/topaz
 def __init__(self, space, seed=0, klass=None):
     W_Object.__init__(self, space, klass)
     self.w_seed = None
     self.random = Random(abs(seed))
コード例 #44
0
 def __init__(self, space, klass=None):
     W_Object.__init__(self, space, klass)
     self.msg = ""
     self.frame = None
     self.w_backtrace = None
コード例 #45
0
ファイル: type.py プロジェクト: mswart/topaz
 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
コード例 #46
0
ファイル: arrayobject.py プロジェクト: judofyr/topaz
 def __init__(self, space, items_w):
     W_Object.__init__(self, space)
     self.items_w = items_w
コード例 #47
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
コード例 #48
0
 def __init__(self, space, source, flags):
     W_Object.__init__(self, space)
     self.set_source(space, source, flags)
コード例 #49
0
 def __init__(self, space, w_owner, w_function):
     W_Object.__init__(self, space)
     self.w_owner = w_owner
     self.w_function = w_function
コード例 #50
0
ファイル: hashobject.py プロジェクト: smcabrera/topaz
 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
コード例 #51
0
 def __init__(self, space, storage, strategy, klass=None):
     W_Object.__init__(self, space, klass)
     self.str_storage = storage
     self.strategy = strategy
コード例 #52
0
ファイル: arrayobject.py プロジェクト: krekoten/topaz
 def __init__(self, space, items_w, klass=None):
     W_Object.__init__(self, space, klass)
     self.items_w = items_w
コード例 #53
0
ファイル: type.py プロジェクト: fniephaus/topaz
 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