GeezerVison is showing github.com — bpo-45476: Add _Py_RVALUE() macro by vstinner · Pull Request #29860 · python/cpython
Conversation
vstinner
commented
Nov 30, 2021
•
edited by bedevere-bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Add a new _Py_RVALUE() macro to prevent using an expression as an
l-value.
Replace a "(void)" cast with the _Py_RVALUE() macro in the following
macros:
- PyCell_SET()
- PyList_SET_ITEM()
- PyTuple_SET_ITEM()
- _PyGCHead_SET_FINALIZED()
- _PyGCHead_SET_NEXT()
- asdl_seq_SET()
- asdl_seq_SET_UNTYPED()
Add also parentheses around macro arguments in PyCell_SET() and
PyTuple_SET_ITEM().
https://bugs.python.org/issue45476
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add a new _Py_RVALUE() macro to prevent using an expression as an
l-value.
Replace a "(void)" cast with the _Py_RVALUE() macro in the following
macros:
* PyCell_SET()
* PyList_SET_ITEM()
* PyTuple_SET_ITEM()
* _PyGCHead_SET_FINALIZED()
* _PyGCHead_SET_NEXT()
* asdl_seq_SET()
* asdl_seq_SET_UNTYPED()
Add also parentheses around macro arguments in PyCell_SET() and
PyTuple_SET_ITEM().
shihai1991
added a commit
to shihai1991/cpython
that referenced
this pull request
Dec 1, 2021
* main: (21 commits)
bpo-45876: Have stdev() also use decimal specific square root. (pythonGH-29869)
bpo-45876: Correctly rounded stdev() and pstdev() for the Decimal case (pythonGH-29828)
bpo-45711: Change exc_info related APIs to derive type and traceback from the exception instance (pythonGH-29780)
bpo-30533:Add function inspect.getmembers_static that does not call properties or dynamic properties. (python#20911)
bpo-45476: Disallow using asdl_seq_GET() as l-value (pythonGH-29866)
bpo-45476: Add _Py_RVALUE() macro (pythonGH-29860)
bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (pythonGH-29801)
Fix EncodingWarning in Tools/freeze/test/freeze.py (pythonGH-29742)
no-issue: remove unused import from test_graphlib.py (pythonGH-29853)
bpo-45931: Prevent Directory.Build.props/targets from leaking from directories above the repo when building on Windows (pythonGH-29854)
bpo-45653: fix test_embed on windows (pythonGH-29814)
bpo-45917: Add math.exp2() method - return 2 raised to the power of x (pythonGH-29829)
bpo-43905: Expand dataclasses.astuple() and asdict() docs (pythonGH-26154)
bpo-44391: Remove unused argument from a varargs call. (pythonGH-29843)
bpo-45881: configure --with-freeze-module --with-build-python (pythonGH-29835)
bpo-45847: PY_STDLIB_MOD_SIMPLE now checks py_stdlib_not_available (pythonGH-29844)
bpo-45828: Use unraisable exceptions within sqlite3 callbacks (FH-29591)
bpo-40280: Emscripten systems use .wasm suffix by default (pythonGH-29842)
bpo-45723: Sort the grand AC_CHECK_HEADERS check (pythonGH-29846)
bpo-45847: Make socket module conditional (pythonGH-29769)
...
shihai1991
added a commit
to shihai1991/cpython
that referenced
this pull request
Dec 1, 2021
* main: (21 commits)
bpo-45876: Have stdev() also use decimal specific square root. (pythonGH-29869)
bpo-45876: Correctly rounded stdev() and pstdev() for the Decimal case (pythonGH-29828)
bpo-45711: Change exc_info related APIs to derive type and traceback from the exception instance (pythonGH-29780)
bpo-30533:Add function inspect.getmembers_static that does not call properties or dynamic properties. (python#20911)
bpo-45476: Disallow using asdl_seq_GET() as l-value (pythonGH-29866)
bpo-45476: Add _Py_RVALUE() macro (pythonGH-29860)
bpo-33381: [doc] strftime's %f option may pad zeros on the left or the right (pythonGH-29801)
Fix EncodingWarning in Tools/freeze/test/freeze.py (pythonGH-29742)
no-issue: remove unused import from test_graphlib.py (pythonGH-29853)
bpo-45931: Prevent Directory.Build.props/targets from leaking from directories above the repo when building on Windows (pythonGH-29854)
bpo-45653: fix test_embed on windows (pythonGH-29814)
bpo-45917: Add math.exp2() method - return 2 raised to the power of x (pythonGH-29829)
bpo-43905: Expand dataclasses.astuple() and asdict() docs (pythonGH-26154)
bpo-44391: Remove unused argument from a varargs call. (pythonGH-29843)
bpo-45881: configure --with-freeze-module --with-build-python (pythonGH-29835)
bpo-45847: PY_STDLIB_MOD_SIMPLE now checks py_stdlib_not_available (pythonGH-29844)
bpo-45828: Use unraisable exceptions within sqlite3 callbacks (FH-29591)
bpo-40280: Emscripten systems use .wasm suffix by default (pythonGH-29842)
bpo-45723: Sort the grand AC_CHECK_HEADERS check (pythonGH-29846)
bpo-45847: Make socket module conditional (pythonGH-29769)
...
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.