commit | 88cb1e60e0b780d71e9c2d7b0acafa71ba3ea318 | [log] [tgz] |
---|---|---|
author | John R. Lenton <jlenton@gmail.com> | Mon Jan 13 19:55:18 2014 +0000 |
committer | John R. Lenton <jlenton@gmail.com> | Mon Jan 13 19:55:18 2014 +0000 |
tree | e24e894cb9a67d89e8d4ef956e7ce9fea5f8b245 | |
parent | 2ded68db77d92f4f277ae688c22ac0be32dc4f31 [diff] [blame] |
Made sorted() raise an exception instead of aborting when given no arguments; moved around some things in objfun.c as a consequence
diff --git a/py/builtin.c b/py/builtin.c index 2d61cd6..53ae93a 100644 --- a/py/builtin.c +++ b/py/builtin.c
@@ -314,4 +314,4 @@ return self; } -MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_sorted_obj, mp_builtin_sorted); +MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_sorted_obj, 1, mp_builtin_sorted);