diff options
author | Guido van Rossum <guido@python.org> | 2001-08-23 21:40:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-23 21:40:38 (GMT) |
commit | 29a62dd6ebe48c4a5c7b4f7d6f0e8589d94a5a0d (patch) | |
tree | 4d48aa9a83d8d7183afe264b292e46e46c1c0d11 /Python | |
parent | 0b13116a625d3a91e9f4507ed81f8b3575cdef8c (diff) | |
download | cpython-29a62dd6ebe48c4a5c7b4f7d6f0e8589d94a5a0d.zip cpython-29a62dd6ebe48c4a5c7b4f7d6f0e8589d94a5a0d.tar.gz cpython-29a62dd6ebe48c4a5c7b4f7d6f0e8589d94a5a0d.tar.bz2 |
Add new built-in type 'getset' (PyGetSet_Type).
This implements the 'getset' class from test_binop.py.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 9a6f5e4..77fe384 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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) |