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

Skip to content

Commit 23ab199

Browse files
committed
Add NotImplemented to the builtin module.
1 parent 5ed85ec commit 23ab199

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Python/bltinmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,6 +2261,9 @@ _PyBuiltin_Init(void)
22612261
return NULL;
22622262
if (PyDict_SetItemString(dict, "Ellipsis", Py_Ellipsis) < 0)
22632263
return NULL;
2264+
if (PyDict_SetItemString(dict, "NotImplemented",
2265+
Py_NotImplemented) < 0)
2266+
return NULL;
22642267
debug = PyInt_FromLong(Py_OptimizeFlag == 0);
22652268
if (PyDict_SetItemString(dict, "__debug__", debug) < 0) {
22662269
Py_XDECREF(debug);

0 commit comments

Comments
 (0)