-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
LOAD_ATTR_WITH_HINT and STORE_ATTR_WITH_HINT have internal branching. #122616
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
Comments
markshannon
changed the title
STORE_ATTR_WITH_HINT has internal branching.
LOAD_ATTR_WITH_HINT and STORE_ATTR_WITH_HINT have internal branching.
Aug 2, 2024
markshannon
added a commit
that referenced
this issue
Aug 5, 2024
brandtbucher
pushed a commit
to brandtbucher/cpython
that referenced
this issue
Aug 7, 2024
Triage: closing because the linked PR is merged, please re-open if still needed. |
blhsing
pushed a commit
to blhsing/cpython
that referenced
this issue
Aug 22, 2024
As already mentioned in the PR, this change introduced behavioural differences, making existing Python code fail with an exception. See cython/cython#6426 (comment) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/python/cpython/blob/main/InternalDocs/adaptive.md describes how specialized instructions should be a series of guards followed by simple, linear code.
Both instructions have two different paths with guards on each path. We should eliminate one of the branches.
Since the instance dictionary is almost certain to have only
str
keys, we should choose that path.Linked PRs
The text was updated successfully, but these errors were encountered: