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

@aiskaisk 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-actionsgithub-actionsBot added the stale Stale PR or inactive for long period of time. label May 18, 2026

@markshannonmarkshannon 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-communityBot commented Jun 30, 2026

Copy link
Copy Markdown

@aisk

aisk commented Jun 30, 2026

Copy link
Copy Markdown
MemberAuthor

@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-actionsgithub-actionsBot 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

@markshannonmarkshannon 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:mainJul 6, 2026
82 checks passed
@aisk
aisk deleted the remove-delete-attr branch July 6, 2026 12:01
Sign up for freeto 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

@aisk@markshannon