You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LOAD_ATTR_WITH_HINT and STORE_ATTR_WITH_HINT have internal branching. #122616
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.
changed the title [-]STORE_ATTR_WITH_HINT has internal branching. [/-][+]LOAD_ATTR_WITH_HINT and STORE_ATTR_WITH_HINT have internal branching. [/+]on Aug 2, 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)
Activity
[-]STORE_ATTR_WITH_HINT has internal branching. [/-][+]LOAD_ATTR_WITH_HINT and STORE_ATTR_WITH_HINT have internal branching. [/+]GH-122616: Simplify LOAD_ATTR_WITH_HINT and STORE_ATTR_WITH_HINT (GH-…
pythonGH-122616: Simplify LOAD_ATTR_WITH_HINT and STORE_ATTR_WITH_HINT (
hugovk commentedon Aug 8, 2024
Triage: closing because the linked PR is merged, please re-open if still needed.
pythonGH-122616: Simplify LOAD_ATTR_WITH_HINT and STORE_ATTR_WITH_HINT (
scoder commentedon Oct 19, 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)