@@ -92,20 +92,20 @@ public PNode getPrimaryNode() {
92
92
protected Object doClass (PythonClass cls , Object key , Object value ,
93
93
@ Cached ("createIdentityProfile()" ) ValueProfile setAttributeProfile ,
94
94
@ Cached ("create(__SETATTR__)" ) LookupAttributeInMRONode setAttributeLookup ,
95
- @ Cached ("create()" ) CallTernaryMethodNode callSetattr ) {
95
+ @ Cached ("create()" ) CallTernaryMethodNode callSetAttribute ) {
96
96
cls .invalidateAttributeInMROFinalAssumptions (key );
97
97
Object descr = setAttributeProfile .profile (setAttributeLookup .execute (cls ));
98
- return callSetattr .execute (descr , cls , key , value );
98
+ return callSetAttribute .execute (descr , cls , key , value );
99
99
}
100
100
101
- @ Specialization
101
+ @ Specialization ( guards = "!isClass(object)" )
102
102
protected Object doIt (Object object , Object key , Object value ,
103
103
@ Cached ("createIdentityProfile()" ) ValueProfile setAttributeProfile ,
104
104
@ Cached ("create()" ) GetClassNode getClassNode ,
105
105
@ Cached ("create(__SETATTR__)" ) LookupAttributeInMRONode setAttributeLookup ,
106
- @ Cached ("create()" ) CallTernaryMethodNode callSetattr ) {
106
+ @ Cached ("create()" ) CallTernaryMethodNode callSetAttribute ) {
107
107
PythonClass type = getClassNode .execute (object );
108
108
Object descr = setAttributeProfile .profile (setAttributeLookup .execute (type ));
109
- return callSetattr .execute (descr , object , key , value );
109
+ return callSetAttribute .execute (descr , object , key , value );
110
110
}
111
111
}
0 commit comments