Skip to content

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented Feb 4, 2025

  • Expand out SETLOCAL so that code generator can see the decrefs.
  • Mark Py_CLEAR as escaping

It is less error prone, and potentially more efficient, to expand out SETLOCAL rather than just not whitelisting it,
Expanding it out means that the code generator can see the explicit operations on the references.

@markshannon markshannon merged commit 96ff4c2 into python:main Feb 4, 2025
73 checks passed
@markshannon markshannon deleted the expand-store-local-ref branch February 4, 2025 14:00
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Feb 7, 2025
Expand out SETLOCAL so that code generator can see the decref. Mark Py_CLEAR as escaping
cmaloney pushed a commit to cmaloney/cpython that referenced this pull request Feb 8, 2025
Expand out SETLOCAL so that code generator can see the decref. Mark Py_CLEAR as escaping
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.

2 participants