Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add virtual opcodes to the dis/opcodes modules #94216

Closed
Assignees
iritkatriel
Labels
type-featureA feature request or enhancement
@iritkatriel

Description

@iritkatriel

As we are exposing compiler optimisations to python for#93678, we also need the virtual opcodes to be available in python. We will add them to opcodes and that will make them available through dis.

The virtual opcodes have values outside the [0,255] range, so they will not obey the normal relationship withHAS_ARGUMENT. We will document thatHAS_ARGUMENT is the threshold for non-virtual opcodes, and add ahasarg collection which includes the relevant virtual opcodes as well.

Fortunately the dis module is documented as unstable between python versions, so we don't need to worry too much about backward compatibility of this. However, it might be good to renameHAS_ARGUMENT to_HAS_ARGUMENT in order to push anyone who happens to be using it to use hasarg instead.

Metadata

Metadata

Assignees

Labels

type-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp