You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Py_tp_dictoffset / Py_tp_finalize are unsettable in stable API #82321
New changeset 3368f3c by Dino Viehland (Eddie Elizondo) in branch 'master': bpo-38140: Make dict and weakref offsets opaque for C heap types (bpo-16076) 3368f3c
This line in _tesctcapimodule.c:
{"__dictoffset__", T_PYSSIZET, -sizeof(void*), READONLY},
gives a legitimate-sounding warning on a Windows buildbot:
d:\buildarea\3.x.ware-win81-release.nondebug\build\modules\_testcapimodule.c(6409): warning C4146: unary minus operator applied to unsigned type, result still unsigned [D:\buildarea\3.x.ware-win81-release.nondebug\build\PCbuild\_testcapi.vcxproj]
eduardo-elizondo commented on Sep 27, 2019
eduardo-elizondomannequin
Mannequin
More actions
Hey Petr, I'll get to document this and fix the windows warning over the weekend. I'll ping you on Github once it's ready
eduardo-elizondo commented on Oct 3, 2019
eduardo-elizondomannequin
Mannequin
More actions
Woops, just realized that you already documented this, thanks! Btw, Victor already merged a fix for the windows compiler warning. This issue can be closed now
Activity
DinoV commentedon Sep 12, 2019
This makes it impossible to port certain types to the stable ABI and remove statics from the interpreter.
DinoV commentedon Sep 19, 2019
New changeset 3368f3c by Dino Viehland (Eddie Elizondo) in branch 'master':
bpo-38140: Make dict and weakref offsets opaque for C heap types (bpo-16076)
3368f3c
encukou commentedon Sep 24, 2019
Thanks for the feature!
This still needs documentation, however.
encukou commentedon Sep 25, 2019
New changeset 468f8a6 by Petr Viktorin in branch 'master':
bpo-38140: Document offsets in PyMemberDef (GH-16354)
468f8a6
shihai1991 commentedon Sep 25, 2019
Got an compile error, i have not check the detail for now:
python: Objects/typeobject.c:2867: PyType_FromSpecWithBases: Assertion `memb->type == 19' failed.
i report it in bpo-38273
encukou commentedon Sep 25, 2019
This line in _tesctcapimodule.c:
{"__dictoffset__", T_PYSSIZET, -sizeof(void*), READONLY},
gives a legitimate-sounding warning on a Windows buildbot:
eduardo-elizondo commentedon Sep 27, 2019
Hey Petr, I'll get to document this and fix the windows warning over the weekend. I'll ping you on Github once it's ready
eduardo-elizondo commentedon Oct 3, 2019
Woops, just realized that you already documented this, thanks! Btw, Victor already merged a fix for the windows compiler warning. This issue can be closed now
encukou commentedon Oct 8, 2019
Thank you all!