Searched refs:type_error (Results 1 – 3 of 3) sorted by relevance
15 type_error(const char *msg, PyObject *obj) in type_error() function155 return type_error("sequence index must " in PyObject_GetItem()159 return type_error("'%.200s' object has no attribute '__getitem__'", o); in PyObject_GetItem()184 type_error("sequence index must be " in PyObject_SetItem()190 type_error("'%.200s' object does not support item assignment", o); in PyObject_SetItem()216 type_error("sequence index must be " in PyObject_DelItem()222 type_error("'%.200s' object does not support item deletion", o); in PyObject_DelItem()1207 return type_error("can't multiply sequence by "1421 return type_error("bad operand type for unary -: '%.200s'", o);1435 return type_error("bad operand type for unary +: '%.200s'", o);[all …]
1405 DEFINE_ERROR(TypeError, type_error) in DEFINE_ERROR()
8933 DEFINE_ERROR(TypeError, type_error) in DEFINE_ERROR()