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 — gh-119180: Add LOAD_COMMON_CONSTANT opcode (#119321) · python/cpython@98e855f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Doc/library
    • dis.rst
  • Include
    • internal
      • pycore_opcode_metadata.h
      • pycore_opcode_utils.h
      • pycore_uop_ids.h
      • pycore_uop_metadata.h
    • opcode_ids.h
  • Lib
    • _opcode_metadata.py
    • dis.py
    • importlib
      • _bootstrap_external.py
    • opcode.py
    • test
      • test_code.py
      • test_compile.py
      • test_dis.py
  • Misc/NEWS.d/next/Core and Builtins
    • 2024-05-21-12-17-02.gh-issue-119180.UNDUb9.rst
  • Objects
    • codeobject.c
  • Programs
    • test_frozenmain.h
  • Python
    • bytecodes.c
    • compile.c
    • executor_cases.c.h
    • generated_cases.c.h
    • opcode_targets.h
    • optimizer_cases.c.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Doc/library/dis.rst‎

Copy file name to clipboardExpand all lines: Doc/library/dis.rst
+5-4Lines changed: 5 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -929,12 +929,13 @@ iterations of the loop.
929929
Exception representation on the stack now consist of one, not three, items.
930930

931931

932-
.. opcode:: LOAD_ASSERTION_ERROR
932+
.. opcode:: LOAD_COMMON_CONSTANT
933933

934-
Pushes :exc:`AssertionError` onto the stack. Used by the :keyword:`assert`
935-
statement.
934+
Pushes a common constant onto the stack. The interpreter contains a hardcoded
935+
list of constants supported by this instruction. Used by the :keyword:`assert`
936+
statement to load :exc:`AssertionError`.
936937

937-
.. versionadded:: 3.9
938+
.. versionadded:: 3.14
938939

939940

940941
.. opcode:: LOAD_BUILD_CLASS
Collapse file

‎Include/internal/pycore_opcode_metadata.h‎

Copy file name to clipboardExpand all lines: Include/internal/pycore_opcode_metadata.h
+8-8Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎Include/internal/pycore_opcode_utils.h‎

Copy file name to clipboardExpand all lines: Include/internal/pycore_opcode_utils.h
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ extern "C" {
5858
#define MAKE_FUNCTION_ANNOTATIONS 0x04
5959
#define MAKE_FUNCTION_CLOSURE 0x08
6060

61+
/* Values used as the oparg for LOAD_COMMON_CONSTANT */
62+
#define CONSTANT_ASSERTIONERROR 0
63+
#define CONSTANT_NOTIMPLEMENTEDERROR 1
64+
#define NUM_COMMON_CONSTANTS 2
65+
6166
/* Values used in the oparg for RESUME */
6267
#define RESUME_AT_FUNC_START 0
6368
#define RESUME_AFTER_YIELD 1
Collapse file

‎Include/internal/pycore_uop_ids.h‎

Copy file name to clipboardExpand all lines: Include/internal/pycore_uop_ids.h
+1-1Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎Include/internal/pycore_uop_metadata.h‎

Copy file name to clipboardExpand all lines: Include/internal/pycore_uop_metadata.h
+3-3Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎Include/opcode_ids.h‎

Copy file name to clipboardExpand all lines: Include/opcode_ids.h
+61-61Lines changed: 61 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — 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.