Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jan 29, 2020

Rename init_slotdefs() to _PyTypes_InitSlotDefs() and add a return
value of type PyStatus. The function is now called exactly once from
_PyTypes_Init(). Replace calls to init_slotdefs() with an assertion
checking that slotdefs is initialized.

https://bugs.python.org/issue38631

Rename init_slotdefs() to _PyTypes_InitSlotDefs() and add a return
value of type PyStatus. The function is now called exactly once from
_PyTypes_Init(). Replace calls to init_slotdefs() with an assertion
checking that slotdefs is initialized.
@vstinner vstinner merged commit 7a1f6c2 into python:master Jan 30, 2020
@vstinner vstinner deleted the init_slotdefs branch January 30, 2020 08:02
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
Rename init_slotdefs() to _PyTypes_InitSlotDefs() and add a return
value of type PyStatus. The function is now called exactly once from
_PyTypes_Init(). Replace calls to init_slotdefs() with an assertion
checking that slotdefs is initialized.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants