会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
彭玉松
博客园
首页
新随笔
联系
订阅
管理
2017年5月10日
【原创】Python 对象创建过程中元类, __new__, __call__, __init__ 的处理
摘要: 原始type: type是最原始的元类,其__call__方法是在你使用" t_class = type(classname_string, base_classes_tuple, attributes_dict)" 这种语法来使用时, 在__call__方法内使用又会调用type的__new__和
阅读全文
posted @ 2017-05-10 22:08 彭玉松
阅读(612)
评论(5)
推荐(0)
编辑
公告