From 881d9af05e7a707bbf17f2661ceab774eef6a9bb Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 10 Apr 2014 01:42:40 +0300 Subject: [PATCH] objstr: Add TODO-optimize for using .join with arbitrary iterable. --- py/objstr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/py/objstr.c b/py/objstr.c index 519ff464d6..39c24205be 100644 --- a/py/objstr.c +++ b/py/objstr.c @@ -330,6 +330,7 @@ STATIC mp_obj_t str_join(mp_obj_t self_in, mp_obj_t arg) { } else { if (!MP_OBJ_IS_TYPE(arg, &mp_type_list)) { // arg is not a list, try to convert it to one + // TODO: Try to optimize? arg = mp_type_list.make_new((mp_obj_t)&mp_type_list, 1, 0, &arg); } mp_obj_list_get(arg, &seq_len, &seq_items);