当前位置: 首页>>代码示例>>Python>>正文


Python W_Object.__init__方法代码示例

本文整理汇总了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
开发者ID:Freidrichs,项目名称:topaz,代码行数:13,代码来源:procobject.py

示例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))
开发者ID:mswart,项目名称:topaz,代码行数:13,代码来源:dynamic_library.py

示例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
开发者ID:Fleurer,项目名称:topaz,代码行数:7,代码来源:fiberobject.py

示例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
开发者ID:topazproject,项目名称:topaz,代码行数:5,代码来源:fileobject.py

示例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)
开发者ID:Fleurer,项目名称:topaz,代码行数:4,代码来源:hashobject.py

示例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
开发者ID:topazproject,项目名称:topaz,代码行数:7,代码来源:exceptionobject.py

示例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
开发者ID:haramako,项目名称:topaz,代码行数:6,代码来源:stringobject.py

示例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 = {}
开发者ID:topazproject,项目名称:topaz,代码行数:6,代码来源:threadobject.py

示例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
开发者ID:flaper87,项目名称:topaz,代码行数:6,代码来源:dirobject.py

示例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
开发者ID:mswart,项目名称:topaz,代码行数:7,代码来源:type.py

示例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))
开发者ID:Freidrichs,项目名称:topaz,代码行数:6,代码来源:randomobject.py

示例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
开发者ID:Freidrichs,项目名称:topaz,代码行数:5,代码来源:timeobject.py

示例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()
开发者ID:AlekSi,项目名称:topaz,代码行数:5,代码来源:randomobject.py

示例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
开发者ID:NateBarnes,项目名称:topaz,代码行数:6,代码来源:methodobject.py

示例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()
开发者ID:Alexis-D,项目名称:topaz,代码行数:5,代码来源:hashobject.py


注:本文中的topaz.objects.objectobject.W_Object.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。