Skip to content

Commit 5e9f7fd

Browse files
committed
avoid infinite recursion during doc lookup
1 parent b1e1896 commit 5e9f7fd

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/capi/ToNativeTypeNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ static void initializeType(PythonClassNativeWrapper obj, Object mem,
321321
writeI64Node.write(mem, CFields.PyTypeObject__tp_flags, getTypeFlagsNode.execute(clazz));
322322

323323
// return a C string wrapper that really allocates 'char*' on TO_NATIVE
324-
Object docObj = getAttrNode.execute(clazz, SpecialAttributeNames.T___DOC__);
324+
Object docObj = clazz.getAttribute(SpecialAttributeNames.T___DOC__);
325325
if (docObj instanceof TruffleString) {
326326
docObj = new CStringWrapper((TruffleString) docObj);
327327
} else if (docObj instanceof PString) {

0 commit comments

Comments
 (0)