We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09a4d83 commit e99841bCopy full SHA for e99841b
1 file changed
py/obj.c
@@ -181,6 +181,9 @@ bool mp_obj_equal(mp_obj_t o1, mp_obj_t o2) {
181
}
182
183
machine_int_t mp_obj_get_int(mp_obj_t arg) {
184
+ // This function essentially performs implicit type conversion to int
185
+ // Note that Python does NOT provide implicit type conversion from
186
+ // float to int in the core expression language, try some_list[1.0].
187
if (arg == mp_const_false) {
188
return 0;
189
} else if (arg == mp_const_true) {
0 commit comments