Skip to content

gh-145857: Replace DELETE_GLOBAL with PUSH_NULL; STORE_GLOBAL#146314

Open
brijkapadia wants to merge 2 commits intopython:mainfrom
brijkapadia:delete-global
Open

gh-145857: Replace DELETE_GLOBAL with PUSH_NULL; STORE_GLOBAL#146314
brijkapadia wants to merge 2 commits intopython:mainfrom
brijkapadia:delete-global

Conversation

@brijkapadia
Copy link
Copy Markdown
Contributor

@brijkapadia brijkapadia commented Mar 23, 2026

Changes:

  • Removed DELETE_GLOBAL opcode
  • Allowed STORE_GLOBAL to take a NULL value corresponding to deletion
  • Added test to test_compiler_codegen.py

📚 Documentation preview 📚: https://cpython-previews--146314.org.readthedocs.build/

Changes:
- Removed `DELETE_GLOBAL` opcode
- Allowed `STORE_GLOBAL` to take a `NULL` value corresponding to
  deletion
- Added test to `test_compiler_codegen.py`
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.

1 participant