We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4b3ccd commit 7ae52abCopy full SHA for 7ae52ab
Python/pylifecycle.c
@@ -804,8 +804,8 @@ pycore_init_builtins(PyThreadState *tstate)
804
goto error;
805
}
806
807
- interp->common_consts[CONSTANT_ASSERTIONERROR] = (PyObject*)&PyTuple_Type;
808
- interp->common_consts[CONSTANT_NOTIMPLEMENTEDERROR] = (PyObject*)&PyTuple_Type;
+ interp->common_consts[CONSTANT_ASSERTIONERROR] = PyExc_AssertionError;
+ interp->common_consts[CONSTANT_NOTIMPLEMENTEDERROR] = PyExc_NotImplementedError;
809
interp->common_consts[CONSTANT_BUILTIN_TUPLE] = (PyObject*)&PyTuple_Type;
810
interp->common_consts[CONSTANT_BUILTIN_ALL] = all;
811
interp->common_consts[CONSTANT_BUILTIN_ANY] = any;
0 commit comments