Skip to content

Conversation

@JelleZijlstra
Copy link
Member

@JelleZijlstraJelleZijlstra 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
MemberAuthor

Choose a reason for hiding this comment

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

Good point, fixed

@JelleZijlstraJelleZijlstra merged commit e8e151d into python:mainJun 20, 2024
@JelleZijlstraJelleZijlstra 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 freeto 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

@JelleZijlstra@iritkatriel