diff options
author | Guido van Rossum <guido@python.org> | 2007-02-27 05:47:18 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-27 05:47:18 (GMT) |
commit | eff072c66c23b287d2fa77e2ef9114cb97d988dd (patch) | |
tree | ca44c751f285becd41cc42e7945d3ba90be9985b | |
parent | b69b2e59f69def8fa90ab762ec6b116d0a0e0a29 (diff) | |
download | cpython-eff072c66c23b287d2fa77e2ef9114cb97d988dd.zip cpython-eff072c66c23b287d2fa77e2ef9114cb97d988dd.tar.gz cpython-eff072c66c23b287d2fa77e2ef9114cb97d988dd.tar.bz2 |
Fix some silly uses of KEYS, ITEMS, VALUES.
-rw-r--r-- | Objects/dictobject.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 3002226..d2a60c4 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -1869,9 +1869,9 @@ static PyObject *dictkeys_new(PyObject *); static PyObject *dictitems_new(PyObject *); static PyObject *dictvalues_new(PyObject *); -PyDoc_STRVAR(KEYS__doc__, "D.KEYS() -> a set-like object for D's keys"); -PyDoc_STRVAR(ITEMS__doc__, "D.ITEMS() -> a set-like object for D's items"); -PyDoc_STRVAR(VALUES__doc__, "D.VALUES() -> a set-like object for D's values"); +PyDoc_STRVAR(keys__doc__, "D.keys() -> a set-like object for D's keys"); +PyDoc_STRVAR(items__doc__, "D.items() -> a set-like object for D's items"); +PyDoc_STRVAR(values__doc__, "D.values() -> a set-like object for D's values"); static PyMethodDef mapp_methods[] = { {"__contains__",(PyCFunction)dict_contains, METH_O | METH_COEXIST, @@ -1895,11 +1895,11 @@ static PyMethodDef mapp_methods[] = { values__doc__}, #endif {"keys", (PyCFunction)dictkeys_new, METH_NOARGS, - KEYS__doc__}, + keys__doc__}, {"items", (PyCFunction)dictitems_new, METH_NOARGS, - ITEMS__doc__}, + items__doc__}, {"values", (PyCFunction)dictvalues_new, METH_NOARGS, - VALUES__doc__}, + values__doc__}, {"update", (PyCFunction)dict_update, METH_VARARGS | METH_KEYWORDS, update__doc__}, {"fromkeys", (PyCFunction)dict_fromkeys, METH_VARARGS | METH_CLASS, @@ -2389,8 +2389,6 @@ PyTypeObject PyDictIterItem_Type = { /* View objects for keys(), items(), values(). */ /***********************************************/ -/* While this is incomplete, we use KEYS(), ITEMS(), VALUES(). */ - /* The instance lay-out is the same for all three; but the type differs. */ typedef struct { |