bpo-40170: PyObject_GET_WEAKREFS_LISTPTR() becomes a function by vstinner · Pull Request #19377 · python/cpython · GitHub
Skip to content

bpo-40170: PyObject_GET_WEAKREFS_LISTPTR() becomes a function - #19377

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:get_weakrefs
Apr 6, 2020
Merged

vstinner merged 1 commit into
python:masterfrom
vstinner:get_weakrefs

Conversation

@vstinner

@vstinner vstinner commented Apr 4, 2020

Copy link
Copy Markdown
Member

Convert PyObject_GET_WEAKREFS_LISTPTR() macro to a function to hide
implementation details: the macro accessed directly to
PyTypeObject.tp_weaklistoffset member.

https://bugs.python.org/issue40170

@vstinner

vstinner commented Apr 5, 2020

Copy link
Copy Markdown
Member Author

Comment thread Objects/object.c Outdated
Comment thread Misc/NEWS.d/next/C API/2020-04-05-00-10-45.bpo-40170.6nFYbY.rst Outdated
Convert the PyObject_GET_WEAKREFS_LISTPTR() macro to a function to
hide implementation details: the macro accessed directly to the
PyTypeObject.tp_weaklistoffset member.

Add _PyObject_GET_WEAKREFS_LISTPTR() static inline function to the
internal C API.
@vstinner
vstinner merged commit 38aefc5 into python:master Apr 6, 2020
@vstinner
vstinner deleted the get_weakrefs branch April 6, 2020 12:14
@vstinner

vstinner commented Apr 6, 2020

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants