本文整理汇总了Python中topaz.objects.objectobject.W_Object类的典型用法代码示例。如果您正苦于以下问题:Python W_Object类的具体用法?Python W_Object怎么用?Python W_Object使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了W_Object类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: copy_instance_vars
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: __init__
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: __init__
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: __init__
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
示例5: __init__
def __init__(self, space):
W_Object.__init__(self, space)
self.is_initialized = False
示例6: __init__
def __init__(self, space):
W_Object.__init__(self, space)
示例7: __init__
def __init__(self, space, block, is_lambda):
W_Object.__init__(self, space)
self.block = block
self.is_lambda = is_lambda
示例8: __init__
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
示例9: __init__
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
示例10: __init__
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
示例11: __init__
def __init__(self, space, seed=0, klass=None):
W_Object.__init__(self, space, klass)
self.w_seed = None
self.random = Random(abs(seed))
示例12: __init__
def __init__(self, space, klass):
W_Object.__init__(self, space, klass)
self.epoch_seconds = 0
示例13: __init__
def __init__(self, space, klass=None):
W_Object.__init__(self, space, klass)
self.random = Random()
示例14: __init__
def __init__(self, space, storage, strategy, klass=None):
W_Object.__init__(self, space, klass)
self.str_storage = storage
self.strategy = strategy
示例15: __init__
def __init__(self, space, symbol):
W_Object.__init__(self, space)
self.symbol = symbol