We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a71f8 commit 6b00f0bCopy full SHA for 6b00f0b
mypyc/codegen/emitclass.py
@@ -323,7 +323,8 @@ def emit_line() -> None:
323
"};",
324
)
325
if emitter.capi_version < (3, 12):
326
- # versions >= 3.12 do not define tp_weaklistoffset, but set Py_TPFLAGS_MANAGED_WEAKREF flag instead
+ # versions >= 3.12 set Py_TPFLAGS_MANAGED_WEAKREF flag instead
327
+ # https://docs.python.org/3.12/extending/newtypes.html#weak-reference-support
328
fields["tp_weaklistoffset"] = base_size
329
else:
330
fields["tp_basicsize"] = base_size
0 commit comments