Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
76f06de9
Commit
76f06de9
authored
Feb 09, 2014
by
Paul Sokolovsky
Browse files
Add NotImplementedError.
parent
f7662645
Changes
2
Hide whitespace changes
Inline
Side-by-side
py/qstrdefs.h
View file @
76f06de9
...
...
@@ -36,6 +36,7 @@ Q(IndentationError)
Q
(
IndexError
)
Q
(
KeyError
)
Q
(
NameError
)
Q
(
NotImplementedError
)
Q
(
OSError
)
Q
(
SyntaxError
)
Q
(
TypeError
)
...
...
py/runtime.c
View file @
76f06de9
...
...
@@ -177,6 +177,7 @@ void rt_init(void) {
mp_map_add_qstr
(
&
map_builtins
,
MP_QSTR_OverflowError
,
mp_obj_new_exception
(
MP_QSTR_OverflowError
));
mp_map_add_qstr
(
&
map_builtins
,
MP_QSTR_OSError
,
mp_obj_new_exception
(
MP_QSTR_OSError
));
mp_map_add_qstr
(
&
map_builtins
,
MP_QSTR_AssertionError
,
mp_obj_new_exception
(
MP_QSTR_AssertionError
));
mp_map_add_qstr
(
&
map_builtins
,
MP_QSTR_NotImplementedError
,
mp_obj_new_exception
(
MP_QSTR_NotImplementedError
));
mp_map_add_qstr
(
&
map_builtins
,
MP_QSTR_StopIteration
,
mp_obj_new_exception
(
MP_QSTR_StopIteration
));
// built-in objects
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment