Skip to content

Remove DELETE_ATTR bytecode instruction #145855

@markshannon

Description

@markshannon

Proposal:

DELETE_ATTR can be replaced with PUSH_NULL; STORE_ATTR

Since DELETE_ATTR just calls PyObject_DelAttr(v, name) which calls PyObject_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.15new features, bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions