Skip to content

bpo-35230: dict: Remove some macros#10513

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

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

Conversation

@methane

@methane methane commented Nov 13, 2018

Copy link
Copy Markdown
Member

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

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

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 :-)

Comment thread Objects/dictobject.c Outdated
Comment thread Objects/dictobject.c
@methane methane changed the title bpo-35230: Remove _Py_REF_DEBUG_COMMA bpo-35230: dict: Remove some macros Nov 14, 2018

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

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