# coerced_self ExprNode or None used internally
# wrapper_call bool used internally
- # optimized_call str or None
-
subexprs = ['self', 'coerced_self', 'function', 'args', 'arg_tuple']
self = None
coerced_self = None
arg_tuple = None
wrapper_call = False
- optimized_call = None
def compile_time_value(self, denv):
function = self.function.compile_time_value(denv)
}
if (none_allowed && obj == Py_None) return 1;
else if (exact) {
- if (PyObject_TypeCheck(obj, type)) return 1;
+ if (obj->ob_type == type) return 1;
}
else {
- if (obj->ob_type == type) return 1;
+ if (PyObject_TypeCheck(obj, type)) return 1;
}
PyErr_Format(PyExc_TypeError,
"Argument '%s' has incorrect type (expected %s, got %s)",