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 4747
4848import com .oracle .graal .python .builtins .Builtin ;
4949import com .oracle .graal .python .builtins .CoreFunctions ;
50+ import com .oracle .graal .python .builtins .PythonBuiltinClassType ;
5051import com .oracle .graal .python .builtins .PythonBuiltins ;
5152import com .oracle .graal .python .builtins .objects .PNone ;
5253import com .oracle .graal .python .builtins .objects .str .PString ;
@@ -109,6 +110,11 @@ Object type(String name) {
109110 Object type (PString name ) {
110111 return get (name .getValue ());
111112 }
113+
114+ @ Fallback
115+ Object doError (Object object ) {
116+ throw raise (PythonBuiltinClassType .TypeError , "unsupported operand '%p'" , object );
117+ }
112118 }
113119
114120 @ 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