Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 344864f

Browse files
committed
Added new builtin standard exception: NotImplementedError (its C
counterpart is PyExc_NotImplementedError).
1 parent eabfab1 commit 344864f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Python/bltinmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,6 +1954,7 @@ PyObject *PyExc_MemoryError;
19541954
PyObject *PyExc_NameError;
19551955
PyObject *PyExc_OverflowError;
19561956
PyObject *PyExc_RuntimeError;
1957+
PyObject *PyExc_NotImplementedError;
19571958
PyObject *PyExc_SyntaxError;
19581959
PyObject *PyExc_SystemError;
19591960
PyObject *PyExc_SystemExit;
@@ -1989,6 +1990,7 @@ bltin_exc[] = {
19891990
{"NameError", &PyExc_NameError, 1},
19901991
{"OverflowError", &PyExc_OverflowError, 1},
19911992
{"RuntimeError", &PyExc_RuntimeError, 1},
1993+
{"NotImplementedError",&PyExc_NotImplementedError,1},
19921994
{"SyntaxError", &PyExc_SyntaxError, 1},
19931995
{"SystemError", &PyExc_SystemError, 1},
19941996
{"SystemExit", &PyExc_SystemExit, 1},

0 commit comments

Comments
 (0)