objexcept: Optimize traceback allocation for exception.

Traceback allocation for exception will now never lead to recursive
MemoryError exception - if there's no memory for traceback, it simply
won't be created.
This commit is contained in:
Paul Sokolovsky
2015-02-15 22:24:03 +03:00
parent 29c4f92e13
commit fa3b895145
3 changed files with 29 additions and 4 deletions

View File

@@ -35,4 +35,6 @@ typedef struct _mp_obj_list_t {
mp_obj_t *items;
} mp_obj_list_t;
mp_obj_t mp_obj_new_list_maybe(mp_uint_t n);
#endif // __MICROPY_INCLUDED_PY_OBJLIST_H__