Skip to content

gh-145855: Remove the DELETE_ATTR bytecode#146216

Merged
markshannon merged 15 commits into
python:mainfrom
aisk:remove-delete-attr
Jul 6, 2026
Merged

gh-145855: Remove the DELETE_ATTR bytecode#146216
markshannon merged 15 commits into
python:mainfrom
aisk:remove-delete-attr

Conversation

@aisk

@aisk aisk commented Mar 20, 2026

Copy link
Copy Markdown
Member
  • Changed DELETE_ATTR to PUSH_NULL; STORE_ATTR;
  • Don't generate specialized STORE_ATTR_* if value is null.

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

@hugovk hugovk removed their request for review April 11, 2026 15:33
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 18, 2026

@markshannon markshannon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good.
Can you fix the merge conflicts, so I can merge it?

# Conflicts:
#	Doc/tools/removed-ids.txt
#	Include/internal/pycore_magic_number.h
#	Include/internal/pycore_uop_ids.h
#	Modules/_testinternalcapi/test_cases.c.h
#	Programs/test_frozenmain.h
#	Python/executor_cases.c.h
#	Python/generated_cases.c.h
@read-the-docs-community

read-the-docs-community Bot commented Jun 30, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33443613 | 📁 Comparing c8f1066 against main (2303eea)

  🔍 Preview build  

22 files changed · ± 22 modified

± Modified

@aisk

aisk commented Jun 30, 2026

Copy link
Copy Markdown
Member Author

@markshannon Thank you for your review, updated with the current main branch.

@markshannon

Copy link
Copy Markdown
Member

Sorry, more merge conflicts from merging #146006
I'll do this one next once you've updated the branch. Thanks.

# Conflicts:
#	Include/internal/pycore_magic_number.h
#	Include/internal/pycore_opcode_metadata.h
#	Include/internal/pycore_uop_ids.h
#	Include/opcode_ids.h
#	Lib/_opcode_metadata.py
#	Modules/_testinternalcapi/test_targets.h
#	Programs/test_frozenmain.h
#	Python/opcode_targets.h
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Jul 5, 2026
@markshannon markshannon self-requested a review July 6, 2026 09:32

@markshannon markshannon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I do like improvements with net negative LOC.

@markshannon markshannon merged commit 8bee2a3 into python:main Jul 6, 2026
82 checks passed
@aisk aisk deleted the remove-delete-attr branch July 6, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants