温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有

`int` and `set` subclass `__sizeof__` under-reports the instance dictionary pointer · Issue #101266 · python/cpython · GitHub

来源:github.com

Bug report Most built-in types, when subclassed, will have a __sizeof__ that is 8 (pointer size) larger than the parent object, due to having an instance dictionary. class UserFloat(float): pass assert UserFloat().__size…

以上为公开页面信息摘要,完整内容请前往原网站阅读。

前往原网站阅读全文

热门推荐记录