File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/builtins Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 53
53
import com .oracle .graal .python .builtins .objects .ints .PInt ;
54
54
import com .oracle .graal .python .builtins .objects .list .PList ;
55
55
import com .oracle .graal .python .builtins .objects .slice .PSlice ;
56
+ import com .oracle .graal .python .builtins .objects .str .PString ;
56
57
import com .oracle .graal .python .builtins .objects .tuple .PTuple ;
57
58
import com .oracle .graal .python .builtins .objects .type .PythonClass ;
58
59
import com .oracle .graal .python .nodes .PBaseNode ;
@@ -303,6 +304,11 @@ public final PList execute(Object value, PythonClass valueClass) {
303
304
304
305
public abstract PList execute (Object cls , Object value , PythonClass valueClass );
305
306
307
+ @ Specialization
308
+ public PList listString (PythonClass cls , PString arg , PythonClass valueClass ) {
309
+ return listString (cls , arg .getValue (), valueClass );
310
+ }
311
+
306
312
@ Specialization
307
313
public PList listString (PythonClass cls , String arg , @ SuppressWarnings ("unused" ) PythonClass valueClass ) {
308
314
char [] chars = arg .toCharArray ();
You can’t perform that action at this time.
0 commit comments