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/builtins/modules Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 47
47
48
48
import com .oracle .graal .python .builtins .Builtin ;
49
49
import com .oracle .graal .python .builtins .CoreFunctions ;
50
+ import com .oracle .graal .python .builtins .PythonBuiltinClassType ;
50
51
import com .oracle .graal .python .builtins .PythonBuiltins ;
51
52
import com .oracle .graal .python .builtins .objects .PNone ;
52
53
import com .oracle .graal .python .builtins .objects .str .PString ;
@@ -109,6 +110,11 @@ Object type(String name) {
109
110
Object type (PString name ) {
110
111
return get (name .getValue ());
111
112
}
113
+
114
+ @ Fallback
115
+ Object doError (Object object ) {
116
+ throw raise (PythonBuiltinClassType .TypeError , "unsupported operand '%p'" , object );
117
+ }
112
118
}
113
119
114
120
@ Builtin (name = "add_to_classpath" , takesVarArgs = true , doc = "Add all arguments to the classpath." )
You can’t perform that action at this time.
0 commit comments