Author: guido.van.rossum
Date: Tue Feb 27 06:47:18 2007
New Revision: 53983

Modified:
   python/branches/p3yk/Objects/dictobject.c
Log:
Fix some silly uses of KEYS, ITEMS, VALUES.


Modified: python/branches/p3yk/Objects/dictobject.c
==============================================================================
--- python/branches/p3yk/Objects/dictobject.c   (original)
+++ python/branches/p3yk/Objects/dictobject.c   Tue Feb 27 06:47:18 2007
@@ -1869,9 +1869,9 @@
 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 @@
         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 @@
 /* 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 {
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to