Skip to content

Commit 76f06de

Browse files
committed
Add NotImplementedError.
1 parent f766264 commit 76f06de

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

py/qstrdefs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Q(IndentationError)
3636
Q(IndexError)
3737
Q(KeyError)
3838
Q(NameError)
39+
Q(NotImplementedError)
3940
Q(OSError)
4041
Q(SyntaxError)
4142
Q(TypeError)

py/runtime.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ void rt_init(void) {
177177
mp_map_add_qstr(&map_builtins, MP_QSTR_OverflowError, mp_obj_new_exception(MP_QSTR_OverflowError));
178178
mp_map_add_qstr(&map_builtins, MP_QSTR_OSError, mp_obj_new_exception(MP_QSTR_OSError));
179179
mp_map_add_qstr(&map_builtins, MP_QSTR_AssertionError, mp_obj_new_exception(MP_QSTR_AssertionError));
180+
mp_map_add_qstr(&map_builtins, MP_QSTR_NotImplementedError, mp_obj_new_exception(MP_QSTR_NotImplementedError));
180181
mp_map_add_qstr(&map_builtins, MP_QSTR_StopIteration, mp_obj_new_exception(MP_QSTR_StopIteration));
181182

182183
// built-in objects

0 commit comments

Comments
 (0)