Skip to content

Commit 881d9af

Browse files
committed
objstr: Add TODO-optimize for using .join with arbitrary iterable.
1 parent 87bb093 commit 881d9af

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

py/objstr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ STATIC mp_obj_t str_join(mp_obj_t self_in, mp_obj_t arg) {
330330
} else {
331331
if (!MP_OBJ_IS_TYPE(arg, &mp_type_list)) {
332332
// arg is not a list, try to convert it to one
333+
// TODO: Try to optimize?
333334
arg = mp_type_list.make_new((mp_obj_t)&mp_type_list, 1, 0, &arg);
334335
}
335336
mp_obj_list_get(arg, &seq_len, &seq_items);

0 commit comments

Comments
 (0)