mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add new built-in type 'getset' (PyGetSet_Type).
This implements the 'getset' class from test_binop.py.
This commit is contained in:
parent
0b13116a62
commit
29a62dd6eb
3 changed files with 141 additions and 0 deletions
|
@ -1921,6 +1921,9 @@ _PyBuiltin_Init(void)
|
|||
if (PyDict_SetItemString(dict, "float",
|
||||
(PyObject *) &PyFloat_Type) < 0)
|
||||
return NULL;
|
||||
if (PyDict_SetItemString(dict, "getset",
|
||||
(PyObject *) &PyGetSet_Type) < 0)
|
||||
return NULL;
|
||||
if (PyDict_SetItemString(dict, "int", (PyObject *) &PyInt_Type) < 0)
|
||||
return NULL;
|
||||
if (PyDict_SetItemString(dict, "list", (PyObject *) &PyList_Type) < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue