Skip to content

bpo-43770: Cleanup _PyObject_GetMethod()#26946

Merged
vstinner merged 1 commit intopython:mainfrom
vstinner:getmethod_cleanup
Jul 1, 2021
Merged

bpo-43770: Cleanup _PyObject_GetMethod()#26946
vstinner merged 1 commit intopython:mainfrom
vstinner:getmethod_cleanup

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Jun 29, 2021

_PyObject_GetMethod() now uses _PyType_IsReady() to decide if
PyType_Ready() must be called or not, rather than testing if
tp->tp_dict is NULL.

Move also variable declarations closer to where they are used, and
use Py_NewRef().

https://bugs.python.org/issue43770

_PyObject_GetMethod() now uses _PyType_IsReady() to decide if
PyType_Ready() must be called or not, rather than testing if
tp->tp_dict is NULL.

Move also variable declarations closer to where they are used, and
use Py_NewRef().
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