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 82a69a5 commit 36597c7Copy full SHA for 36597c7
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