commit | 22602cc37bc2454568cc9e8834a8ba444c85be05 | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Tue Sep 01 15:35:31 2015 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Tue Sep 01 15:35:31 2015 +0100 |
tree | 8ae9a04d2ba633295fd0b33dba416e09734bde03 | |
parent | 1b693543aa5dcc3c5d35c63f4d657689d2f8fc1e [diff] [blame] |
py/objstr: Make str.rsplit(None,n) raise NotImpl instead of assert(0).
diff --git a/py/objstr.c b/py/objstr.c index 814dd9e..f1e4e6b 100644 --- a/py/objstr.c +++ b/py/objstr.c
@@ -578,7 +578,7 @@ mp_int_t idx = splits; if (sep == mp_const_none) { - assert(!"TODO: rsplit(None,n) not implemented"); + mp_not_implemented("rsplit(None,n)"); } else { mp_uint_t sep_len; const char *sep_str = mp_obj_str_get_data(sep, &sep_len);