-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Remove DELETE_ATTR bytecode instruction #145855
Copy link
Copy link
Open
Labels
3.15new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
3.15new features, bugs and security fixesnew features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement
Proposal:
DELETE_ATTRcan be replaced withPUSH_NULL; STORE_ATTRSince
DELETE_ATTRjust callsPyObject_DelAttr(v, name)which callsPyObject_SetAttr(v, name, NULL), no other changes are needed to do this.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Linked PRs