Lines Matching refs:MP_ERROR_TEXT
363 mp_raise_TypeError(MP_ERROR_TEXT("can't convert to float")); in mp_obj_get_float()
366 MP_ERROR_TEXT("can't convert %s to float"), mp_obj_get_type_str(arg)); in mp_obj_get_float()
403 mp_raise_TypeError(MP_ERROR_TEXT("can't convert to complex")); in mp_obj_get_complex()
406 MP_ERROR_TEXT("can't convert %s to complex"), mp_obj_get_type_str(arg)); in mp_obj_get_complex()
421 mp_raise_TypeError(MP_ERROR_TEXT("expected tuple/list")); in mp_obj_get_array()
424 MP_ERROR_TEXT("object '%s' isn't a tuple or list"), mp_obj_get_type_str(o)); in mp_obj_get_array()
435 mp_raise_ValueError(MP_ERROR_TEXT("tuple/list has wrong length")); in mp_obj_get_array_fixed_n()
438 MP_ERROR_TEXT("requested length %d but object has length %d"), (int)len, (int)seq_len); in mp_obj_get_array_fixed_n()
450 mp_raise_TypeError(MP_ERROR_TEXT("indices must be integers")); in mp_get_index()
453 MP_ERROR_TEXT("%q indices must be integers, not %s"), in mp_get_index()
470 mp_raise_msg(&mp_type_IndexError, MP_ERROR_TEXT("index out of range")); in mp_get_index()
472 … mp_raise_msg_varg(&mp_type_IndexError, MP_ERROR_TEXT("%q index out of range"), type->name); in mp_get_index()
504 mp_raise_TypeError(MP_ERROR_TEXT("object has no len")); in mp_obj_len()
507 MP_ERROR_TEXT("object of type '%s' has no len()"), mp_obj_get_type_str(o_in)); in mp_obj_len()
545 mp_raise_TypeError(MP_ERROR_TEXT("object doesn't support item deletion")); in mp_obj_subscr()
548 MP_ERROR_TEXT("'%s' object doesn't support item deletion"), mp_obj_get_type_str(base)); in mp_obj_subscr()
552 mp_raise_TypeError(MP_ERROR_TEXT("object isn't subscriptable")); in mp_obj_subscr()
555 MP_ERROR_TEXT("'%s' object isn't subscriptable"), mp_obj_get_type_str(base)); in mp_obj_subscr()
559 mp_raise_TypeError(MP_ERROR_TEXT("object doesn't support item assignment")); in mp_obj_subscr()
562 … MP_ERROR_TEXT("'%s' object doesn't support item assignment"), mp_obj_get_type_str(base)); in mp_obj_subscr()
593 mp_raise_TypeError(MP_ERROR_TEXT("object with buffer protocol required")); in mp_get_buffer_raise()