8000 GH-93429: Document LOAD_METHOD removal by Fidget-Spinner · Pull Request #93803 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-93429: Document LOAD_METHOD removal #93803

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

Merged
merged 2 commits into from
Jun 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix a typo
  • Loading branch information
Fidget-Spinner committed Jun 14, 2022
commit 0ba72942d2f747fa011dbf53d6a22ca070b4bb33
2 changes: 1 addition & 1 deletion Doc/library/dis.rst
< 5C6C td class="blob-num blob-num-expandable" colspan="2"> Expand Up
Original file line number Diff line number Diff line change
@@ -891,7 +891,7 @@ iterations of the loop.
``getattr(TOS, co_names[namei>>1])``.

If the low bit of ``namei`` is set, this will attempt to load a method named
``co_names[namei>>i]`` from the TOS object. TOS is popped.
``co_names[namei>>1]`` from the TOS object. TOS is popped.
This bytecode distinguishes two cases: if TOS has a method with the correct
name, the bytecode pushes the unbound method and TOS. TOS will be used as
the first argument (``self``) by :opcode:`CALL` when calling the
Expand Down
0