You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python.annotations/src/com/oracle/graal/python/annotations/ArgumentClinic.java
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -66,8 +66,9 @@
66
66
67
67
/**
68
68
* The string should contain valid Java constant value expression, for example, {@code true}, or
69
-
* {@code \"some string\"}. You may have to update the annotation processor to include import of
70
-
* necessary packages or use fully qualified names.
69
+
* {@code \"some string\"}. Another supported value is an identifier of a static field inside
70
+
* the annotated class. For anything else, you may have to update the annotation processor to
71
+
* include import of necessary packages or use fully qualified names.
71
72
*/
72
73
StringdefaultValue() default"";
73
74
@@ -122,10 +123,21 @@ enum ClinicConversion {
122
123
*/
123
124
Int,
124
125
/**
125
-
* Corresponds to CPython's {@code Py_ssize_t} converter. Supports {@link #defaultValue()},
126
-
* and {@link #useDefaultForNone()}.
126
+
* Corresponds to CPython's {@code long} converter ("L"/"l" for old style conversions).
127
+
* Supports {@link #defaultValue()}, and {@link #useDefaultForNone()}.
128
+
*/
129
+
Long,
130
+
/**
131
+
* Corresponds to CPython's {@code Py_ssize_t} converter, except that it converts the result
132
+
* into Java integer. Supports {@link #defaultValue()}, and {@link #useDefaultForNone()}.
127
133
*/
128
134
Index,
135
+
/**
136
+
* Roughly corresponds to CPython's legacy "n" converter: calls the __index__ and then
137
+
* converts it to Java long. Supports {@link #defaultValue()}, and
138
+
* {@link #useDefaultForNone()}.
139
+
*/
140
+
LongIndex,
129
141
/**
130
142
* Corresponds to CPython's {@code slice_index} converter. Supports {@link #defaultValue()},
0 commit comments