Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dis module documentation is missing END_SEND #109805

Closed
P403n1x87 opened this issue Sep 24, 2023 · 1 comment
Closed

dis module documentation is missing END_SEND #109805

P403n1x87 opened this issue Sep 24, 2023 · 1 comment
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes docs Documentation in the Doc dir

Comments

@P403n1x87
Copy link
Contributor

Documentation

The disassembly of some code object obtained with Python 3.12.0rc1 shows a new END_SEND opcode

Disassembly of <code object coro at 0x104617430, file "/tmp/agen.py", line 20>:
 20           0 RETURN_GENERATOR
              2 POP_TOP
              4 RESUME                   0

 21           6 PUSH_NULL
              8 LOAD_FAST                0 (wrapper)
             10 LOAD_FAST                1 (wrapped)
             12 LOAD_FAST                2 (args)
             14 LOAD_FAST                3 (kwargs)
             16 CALL                     3
             24 GET_AWAITABLE            0
             26 LOAD_CONST               0 (None)
        >>   28 SEND                     3 (to 38)
             32 YIELD_VALUE              2
             34 RESUME                   3
             36 JUMP_BACKWARD_NO_INTERRUPT     5 (to 28)
        >>   38 END_SEND
             40 RETURN_VALUE
        >>   42 CLEANUP_THROW
             44 JUMP_BACKWARD            4 (to 38)
        >>   46 CALL_INTRINSIC_1         3 (INTRINSIC_STOPITERATION_ERROR)
             48 RERAISE                  1

However, there doesn't seem to be an entry in the documentation for the dis module describing this new opcode.

@P403n1x87 P403n1x87 added the docs Documentation in the Doc dir label Sep 24, 2023
@AlexWaygood AlexWaygood added 3.12 bugs and security fixes 3.13 bugs and security fixes labels Sep 24, 2023
@AA-Turner
Copy link
Member

Duplicate of #107457; closing.

A

@AA-Turner AA-Turner closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.12 bugs and security fixes 3.13 bugs and security fixes docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

3 participants