本文整理汇总了Python中topaz.objects.objectobject.W_Object.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python W_Object.__init__方法的具体用法?Python W_Object.__init__怎么用?Python W_Object.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类topaz.objects.objectobject.W_Object
的用法示例。
在下文中一共展示了W_Object.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
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
示例2: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
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__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
def __init__(self, space, klass=None):
W_Object.__init__(self, space, klass)
self.w_block = None
self.sthread = None
self.parent_fiber = None
示例4: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
def __init__(self, space):
W_Object.__init__(self, space)
self.is_initialized = False
示例5: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
def __init__(self, space):
W_Object.__init__(self, space)
示例6: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
def __init__(self, space, klass=None):
W_Object.__init__(self, space, klass)
self.msg = ""
self.frame = None
self.w_backtrace = None
示例7: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
def __init__(self, space, storage, strategy):
W_Object.__init__(self, space)
self.str_storage = storage
self.strategy = strategy
示例8: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
def __init__(self, space):
W_Object.__init__(self, space)
# TODO: This should be a map dict.
self.local_storage = {}
示例9: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
def __init__(self, space, klass=None):
W_Object.__init__(self, space, klass)
self.open = False
self.path = None
示例10: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
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__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
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__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
def __init__(self, space, klass):
W_Object.__init__(self, space, klass)
self.epoch_seconds = 0
示例13: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
def __init__(self, space, klass=None):
W_Object.__init__(self, space, klass)
self.random = Random()
示例14: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
def __init__(self, space, w_owner, w_function):
W_Object.__init__(self, space)
self.w_owner = w_owner
self.w_function = w_function
示例15: __init__
# 需要导入模块: from topaz.objects.objectobject import W_Object [as 别名]
# 或者: from topaz.objects.objectobject.W_Object import __init__ [as 别名]
def __init__(self, space, d):
W_Object.__init__(self, space)
self.iterator = d.iteritems()