• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python objectobject.W_Object类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python stringobject.W_StringObject类代码示例发布时间:2022-05-27
下一篇:
Python numericobject.W_NumericObject类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap