Skip to content

Commit 945a561

Browse files
committed
Address review
1 parent 71122ee commit 945a561

4 files changed

Lines changed: 12 additions & 6 deletions

File tree

Modules/_testinternalcapi/test_cases.c.h

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/bytecodes.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2971,7 +2971,8 @@ dummy_func(
29712971
op(_LOAD_ATTR_CLASS, (descr/4, owner -- attr)) {
29722972
PyTypeObject *descr_type = Py_TYPE(descr);
29732973
PyObject *owner_o = PyStackRef_AsPyObjectBorrow(owner);
2974-
EXIT_IF(descr_type != (PyTypeObject *)owner_o);
2974+
EXIT_IF((descr_type->tp_flags & Py_TPFLAGS_IMMUTABLETYPE) == 0
2975+
&& descr_type != (PyTypeObject *)owner_o);
29752976

29762977
STAT_INC(LOAD_ATTR, hit);
29772978
assert(descr != NULL);

Python/executor_cases.c.h

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Python/generated_cases.c.h

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)