Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-35230: dict: Remove some macros #10513

Merged
merged 3 commits into from
Nov 14, 2018
Merged

Conversation

methane
Copy link
Member

@methane methane commented Nov 13, 2018

Remove _Py_REF_DEBUG_COMMA, DK_DEBUG_INCREF, and DK_DEBUG_DECREF.
Convert DK_INCREF and DK_DECREF to static inline functions.

https://bugs.python.org/issue35230

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dislike "bpo-35230: Remove _Py_REF_DEBUG_COMMA" title, IMHO the main change is that PyDictKeys incref/decref macros are converted to static inline functions. The removal of _Py_REF_DEBUG_COMMA is more a side effect. Even if I know that your goal was to remove _Py_REF_DEBUG_COMMA :-)

@methane methane changed the title bpo-35230: Remove _Py_REF_DEBUG_COMMA bpo-35230: dict: Remove some macros Nov 14, 2018
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@methane methane merged commit a757649 into python:master Nov 14, 2018
@methane methane deleted the dict-incref branch November 14, 2018 09:39
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.

4 participants