Skip to content

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

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

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

Conversation

@bkap123
Copy link
Contributor

@bkap123 bkap123 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