KEMBAR78
gh-120780: Show attribute name for LOAD_SPECIAL in dis output by JelleZijlstra · Pull Request #120781 · python/cpython · GitHub
Skip to content

Conversation

@JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Jun 20, 2024

Lib/dis.py Outdated
else:
argrepr = repr(obj)
elif deop == LOAD_SPECIAL:
argrepr = get_special_method_names()[arg]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This creates the list every time. With the intrinsic descs we cache it in opcode.py.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, fixed

@JelleZijlstra JelleZijlstra merged commit e8e151d into python:main Jun 20, 2024
@JelleZijlstra JelleZijlstra deleted the loadspecial branch June 20, 2024 14:07
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants