Skip to content

Commit 76a07c3

Browse files
committed
Update doc of HPyStringAsPythonStringNode
1 parent e29d60d commit 76a07c3

File tree

1 file changed

+3
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy

1 file changed

+3
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/hpy/GraalHPyNodes.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,8 +1328,9 @@ static Object doGeneric(@SuppressWarnings("unused") GraalHPyContext hpyContext,
13281328
}
13291329

13301330
/**
1331-
* Similar to {@link HPyAsPythonObjectNode}, this node converts a native primitive value to an
1332-
* appropriate Python char value (a single-char Python string).
1331+
* This node either passes a {@link String} object through or it converts a {@code NULL} pointer
1332+
* to {@link PNone#NONE}. This is a very special use case and certainly only good for reading a
1333+
* member of type {@link GraalHPyDef#HPY_MEMBER_STRING}.
13331334
*/
13341335
@GenerateUncached
13351336
public abstract static class HPyStringAsPythonStringNode extends CExtToJavaNode {

0 commit comments

Comments
 (0)