Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 19456:3b5f34c5bc6c legacy-trunk
Add new built-in type 'getset' (PyGetSet_Type).
This implements the 'getset' class from test_binop.py.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 23 Aug 2001 21:40:38 +0000 |
| parents | be9b50704e4c |
| children | 8d2b2cb2febc |
line wrap: on
line diff
--- a/Python/bltinmodule.c Thu Aug 23 21:32:40 2001 +0000 +++ b/Python/bltinmodule.c Thu Aug 23 21:40:38 2001 +0000 @@ -1921,6 +1921,9 @@ 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)
