Skip to content

Commit 5ea1a2b

Browse files
committed
added missing HidenKeyDescriptor specialization in GetSetDescriptor.REPR
1 parent 69b1f8f commit 5ea1a2b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/getsetdescriptor/GetSetDescriptorTypeBuiltins.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ abstract static class GetSetReprNode extends PythonUnaryBuiltinNode {
9999
Object repr(GetSetDescriptor descr) {
100100
return String.format("<attribute '%s' of '%s' objects>", descr.getName(), GetNameNode.doSlowPath(descr.getType()));
101101
}
102+
103+
@Specialization
104+
@TruffleBoundary
105+
Object repr(HiddenKeyDescriptor descr) {
106+
return String.format("<attribute '%s' of '%s' objects>", descr.getKey(), GetNameNode.doSlowPath(descr.getType()));
107+
}
102108
}
103109

104110
abstract static class DescriptorCheckNode extends PNodeWithContext {

0 commit comments

Comments
 (0)