本文整理汇总了Python中topaz.objects.objectobject.W_Object类的典型用法代码示例。如果您正苦于以下问题:Python W_Object类的具体用法?Python W_Object怎么用?Python W_Object使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了W_Object类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
开发者ID:topazproject,项目名称:topaz,代码行数:7,代码来源:exceptionobject.py
示例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))
开发者ID:mswart,项目名称:topaz,代码行数:11,代码来源:dynamic_library.py
示例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
开发者ID:Freidrichs,项目名称:topaz,代码行数:11,代码来源:procobject.py
示例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
开发者ID:NateBarnes,项目名称:topaz,代码行数:5,代码来源:methodobject.py
示例5: __init__
def __init__(self, space):
W_Object.__init__(self, space)
self.is_initialized = False
开发者ID:topazproject,项目名称:topaz,代码行数:3,代码来源:fileobject.py
示例6: __init__
def __init__(self, space):
W_Object.__init__(self, space)
开发者ID:Fleurer,项目名称:topaz,代码行数:2,代码来源:hashobject.py
示例7: __init__
def __init__(self, space, block, is_lambda):
W_Object.__init__(self, space)
self.block = block
self.is_lambda = is_lambda
开发者ID:emi1337,项目名称:topaz,代码行数:4,代码来源:procobject.py
示例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
开发者ID:Freidrichs,项目名称:topaz,代码行数:5,代码来源:rangeobject.py
示例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
开发者ID:Fleurer,项目名称:topaz,代码行数:6,代码来源:bindingobject.py
示例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
开发者ID:mswart,项目名称:topaz,代码行数:5,代码来源:type.py
示例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))
开发者ID:Freidrichs,项目名称:topaz,代码行数:4,代码来源:randomobject.py
示例12: __init__
def __init__(self, space, klass):
W_Object.__init__(self, space, klass)
self.epoch_seconds = 0
开发者ID:Freidrichs,项目名称:topaz,代码行数:3,代码来源:timeobject.py
示例13: __init__
def __init__(self, space, klass=None):
W_Object.__init__(self, space, klass)
self.random = Random()
开发者ID:AlekSi,项目名称:topaz,代码行数:3,代码来源:randomobject.py
示例14: __init__
def __init__(self, space, storage, strategy, klass=None):
W_Object.__init__(self, space, klass)
self.str_storage = storage
self.strategy = strategy
开发者ID:dadadadave,项目名称:topaz,代码行数:4,代码来源:stringobject.py
示例15: __init__
def __init__(self, space, symbol):
W_Object.__init__(self, space)
self.symbol = symbol
开发者ID:dadadadave,项目名称:topaz,代码行数:3,代码来源:symbolobject.py
示例16: __init__
def __init__(self, space, klass=None):
W_Object.__init__(self, space, klass)
self.open = False
self.path = None
开发者ID:flaper87,项目名称:topaz,代码行数:4,代码来源:dirobject.py
示例17: __init__
def __init__(self, space, klass):
W_Object.__init__(self, space, klass)
self._set_epoch_seconds(0.0)
self._set_offset(0)
开发者ID:topazproject,项目名称:topaz,代码行数:4,代码来源:timeobject.py
示例18: __init__
def __init__(self, space):
W_Object.__init__(self, space)
# TODO: This should be a map dict.
self.local_storage = {}
开发者ID:topazproject,项目名称:topaz,代码行数:4,代码来源:threadobject.py
示例19: __init__
def __init__(self, space, regexp, ctx):
W_Object.__init__(self, space)
self.regexp = regexp
self.ctx = ctx
self._flatten_cache = None
开发者ID:Freidrichs,项目名称:topaz,代码行数:5,代码来源:regexpobject.py
示例20: __init__
def __init__(self, space, storage, strategy):
W_Object.__init__(self, space)
self.str_storage = storage
self.strategy = strategy
开发者ID:haramako,项目名称:topaz,代码行数:4,代码来源:stringobject.py
注:本文中的topaz.objects.objectobject.W_Object类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论