Skip to content

bpo-35230: dict: Remove some macros#10513

Merged
methane merged 3 commits intopython:masterfrom
methane:dict-incref
Nov 14, 2018
Merged

bpo-35230: dict: Remove some macros#10513
methane merged 3 commits intopython:masterfrom
methane:dict-incref

Conversation

@methane
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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