mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Add NotImplemented to the builtin module.
This commit is contained in:
parent
5ed85ec0c0
commit
23ab199bfd
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue