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
PyType_FromModuleAndSpec function should add the process of tp_vectorcall_offset #84764
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-05-11.21:41:15.546>created_at=<Date2020-05-10.17:07:23.615>labels= ['interpreter-core', '3.9']
title='PyType_FromModuleAndSpec function should add the process of tp_vectorcall_offset'updated_at=<Date2020-05-11.21:41:29.917>user='https://github.com/shihai1991'
some typeobject using tp_vectorcall_offset, if we use PyType_FromModuleAndSpec to create the the typeobject, it will be faild due to PyType_FromModuleAndSpec lack the process of tp_vectorcall_offset.
Note that __dictoffset__ and __weaklistoffset__ are also exposed as members (in PyMemberDef type_members) and documented (Doc/c-api/structures.rst). A new __vectorcalloffset__ should have that as well.
Note that __dictoffset__ and __weaklistoffset__ are also exposed as members (in PyMemberDef type_members) and documented (Doc/c-api/structures.rst). A new __vectorcalloffset__ should have that as well.
Thanks for your comment, petr. And I updated the doc in PR20026.
Activity
shihai1991 commentedon May 10, 2020
some typeobject using
tp_vectorcall_offset, if we usePyType_FromModuleAndSpecto create the the typeobject, it will be faild due toPyType_FromModuleAndSpeclack the process oftp_vectorcall_offset.so we should adding some process like https://github.com/python/cpython/blob/master/Objects/typeobject.c#L2966-L2976.
encukou commentedon May 11, 2020
That seems reasonable. See the discussion around https://bugs.python.org/issue38140 for context.
Note that __dictoffset__ and __weaklistoffset__ are also exposed as members (in PyMemberDef type_members) and documented (Doc/c-api/structures.rst). A new __vectorcalloffset__ should have that as well.
shihai1991 commentedon May 11, 2020
Thanks for your comment, petr. And I updated the doc in PR20026.
vstinner commentedon May 11, 2020
New changeset 86d6944 by Hai Shi in branch 'master':
bpo-40584: Update PyType_FromModuleAndSpec() to process tp_vectorcall_offset (GH-20026)
86d6944
vstinner commentedon May 11, 2020
Thanks Hai Shi!