Skip to content

Conversation

@vstinner
Copy link
Member

The following macros are modified to use _Py_RVALUE(), so they can no longer be used as l-value:

  • DK_LOG_SIZE()
  • _PyCode_CODE()
  • _PyList_ITEMS()
  • _PyTuple_ITEMS()
  • _Py_SLIST_HEAD()
  • _Py_SLIST_ITEM_NEXT()

_PyCode_CODE() is private and other macros are part of the internal C API.

The following macros are modified to use _Py_RVALUE(), so they can no longer be used as l-value: * DK_LOG_SIZE() * _PyCode_CODE() * _PyList_ITEMS() * _PyTuple_ITEMS() * _Py_SLIST_HEAD() * _Py_SLIST_ITEM_NEXT() _PyCode_CODE() is private and other macros are part of the internal C API.
@vstinner
Copy link
MemberAuthor

PR rebased to fix a conflict.

@vstinnervstinner merged commit 7bae15c into python:mainNov 28, 2022
@vstinnervstinner deleted the rvalue branch November 28, 2022 16:42
Sign up for freeto 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.

2 participants

@vstinner@bedevere-bot