GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add virtual opcodes to the dis/opcodes modules · Issue #94216 · python/cpython

Add virtual opcodes to the dis/opcodes modules #94216

New issue
Copy link
New issue
Copy link
Closed
Closed
Add virtual opcodes to the dis/opcodes modules#94216
Copy link
Assignees
iritkatriel
Labels
type-featureA feature request or enhancementA feature request or enhancement

Description

@iritkatriel
iritkatriel
opened on Jun 24, 2022
Issue body actions

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 with HAS_ARGUMENT. We will document that HAS_ARGUMENT is the threshold for non-virtual opcodes, and add a hasarg 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 rename HAS_ARGUMENT to _HAS_ARGUMENT in order to push anyone who happens to be using it to use hasarg instead.

Activity

  1. iritkatriel
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Jun 24, 2022
  2. iritkatriel
    self-assigned this
    on Jun 24, 2022
  3. iritkatriel commented on Jun 24, 2022

    @iritkatriel
    iritkatriel
    on Jun 24, 2022
    MemberAuthor
    More actions

    CC @markshannon @brandtbucher @sweeneyde .

  4. iritkatriel
    changed the title [-]Add virtual opcodes to the dis/opcodes module[/-] [+]Add virtual opcodes to the dis/opcodes modules[/+] on Jun 24, 2022
  5. iritkatriel
    moved this to In Progress in Fancy CPython Boardon Jun 29, 2022
  6. iritkatriel
    added this to Fancy CPython Boardon Jun 29, 2022
  7. iritkatriel
    moved this from In Progress to In Review in Fancy CPython Boardon Jun 29, 2022
  8. iritkatriel
    added a commit that references this issue on Jul 1, 2022

    gh-94216: add pseudo instructions to the dis/opcodes modules (GH-94241)

    c57aad7
  9. iritkatriel
    moved this from In Review to Done in Fancy CPython Boardon Jul 1, 2022
  10. iritkatriel
    closed this as completedon Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @iritkatriel
    iritkatriel

Labels

type-featureA feature request or enhancementA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.