Skip to content

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 6, 2020

Avoid duplicated code:

  • PyObject_Init() uses PyObject_INIT()
  • PyObject_InitVar() uses PyObject_INIT_VAR()

https://bugs.python.org/issue39873

@vstinner
Copy link
Member Author

vstinner commented Mar 6, 2020

cc @petdance: I merged his PR #18799 which added _PyObject_CAST_CONST() and he is working on PR #18798 which modifies even more code to use Py_IS_TYPE(). Work related to bpo-39573.

Avoid duplicated code:

* PyObject_Init() uses PyObject_INIT()
* PyObject_InitVar() uses PyObject_INIT_VAR()
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