Commit 2b87143
committed
vm: skip LOAD_ATTR_GETATTRIBUTE_OVERRIDDEN when __getattr__ is also defined
Calling __getattribute__ directly bypasses the __getattr__ fallback
that slot_tp_getattr_hook normally provides. Guard against this by
refusing to specialize when the class also defines __getattr__.1 parent 52d9164 commit 2b87143
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6972 | 6972 | | |
6973 | 6973 | | |
6974 | 6974 | | |
| 6975 | + | |
6975 | 6976 | | |
6976 | 6977 | | |
6977 | 6978 | | |
| |||
0 commit comments