datamodel

What is __weakrefoffset__?

What is __weakrefoffset__? Question: What is the __weakrefoffset__ attribute for? What does the integer value signify? >>> int.__weakrefoffset__ 0 >>> class A: … pass … >>> A.__weakrefoffset__ 24 >>> type.__weakrefoffset__ 368 >>> class B: … __slots__ = () … >>> B.__weakrefoffset__ 0 All types seem to have this attribute. But there’s no mention about that …

Total answers: 2