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

Skip to content

Commit f5cb357

Browse files
committed
Add 'super' builtin type.
1 parent 609c7c8 commit f5cb357

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
@@ -1938,6 +1938,9 @@ _PyBuiltin_Init(void)
19381938
return NULL;
19391939
if (PyDict_SetItemString(dict, "str", (PyObject *) &PyString_Type) < 0)
19401940
return NULL;
1941+
if (PyDict_SetItemString(dict, "super",
1942+
(PyObject *) &PySuper_Type) < 0)
1943+
return NULL;
19411944
if (PyDict_SetItemString(dict, "tuple",
19421945
(PyObject *) &PyTuple_Type) < 0)
19431946
return NULL;

0 commit comments

Comments
 (0)