mirror of
https://github.com/python/cpython
synced 2024-10-19 11:48:32 +00:00
Add NotImplemented to the builtin module.
This commit is contained in:
parent
5ed85ec0c0
commit
23ab199bfd
|
@ -2261,6 +2261,9 @@ _PyBuiltin_Init(void)
|
|||
return NULL;
|
||||
if (PyDict_SetItemString(dict, "Ellipsis", Py_Ellipsis) < 0)
|
||||
return NULL;
|
||||
if (PyDict_SetItemString(dict, "NotImplemented",
|
||||
Py_NotImplemented) < 0)
|
||||
return NULL;
|
||||
debug = PyInt_FromLong(Py_OptimizeFlag == 0);
|
||||
if (PyDict_SetItemString(dict, "__debug__", debug) < 0) {
|
||||
Py_XDECREF(debug);
|
||||
|
|
Loading…
Reference in a new issue