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

dis: Show names of intrinsics #103963

Closed
Labels
3.12only security fixesstdlibPython modules in the Lib dirtype-featureA feature request or enhancement
@JelleZijlstra

Description

@JelleZijlstra

ForCALL_INTRINSIC_* opcodes,dis currently just shows the number, which makes it hard to figure out what the code actually does:

              2 LOAD_CONST               0 ('T')              4 CALL_INTRINSIC_1         7

It would be nice if this instead said

              2 LOAD_CONST               0 ('T')              4 CALL_INTRINSIC_1         7 (INTRINSIC_TYPEVAR)

Possible implementation strategy:

  • instrinsic names are defined in opcode.py
  • pycore_intrinsics.h is generated from opcode.py (bonus: we no longer have to manually update MAX_INTRINSIC_1)
  • dis learns to read the intrinsic names from opcode.py

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixesstdlibPython modules in the Lib dirtype-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