diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-10-29 22:25:45 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-10-29 22:25:45 (GMT) |
commit | a427a2b8d09a756119d424efac85159a0270b503 (patch) | |
tree | f94a983fe68890ca1b91d7dedefaebcd81284597 /Objects/dictobject.c | |
parent | 7ad2d1eb8eaf8db634b440ef3c4f5a1b9b654cb5 (diff) | |
download | cpython-a427a2b8d09a756119d424efac85159a0270b503.zip cpython-a427a2b8d09a756119d424efac85159a0270b503.tar.gz cpython-a427a2b8d09a756119d424efac85159a0270b503.tar.bz2 |
Rename "dictionary" (type and constructor) to "dict".
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r-- | Objects/dictobject.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 167f901..019f112 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -1784,7 +1784,7 @@ dict_init(PyObject *self, PyObject *args, PyObject *kwds) static char *kwlist[] = {"items", 0}; int result = 0; - if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O:dictionary", + if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O:dict", kwlist, &arg)) result = -1; @@ -1804,10 +1804,10 @@ dict_iter(dictobject *dict) } static char dictionary_doc[] = -"dictionary() -> new empty dictionary.\n" -"dictionary(mapping) -> new dict initialized from a mapping object's\n" +"dict() -> new empty dictionary.\n" +"dict(mapping) -> new dictionary initialized from a mapping object's\n" " (key, value) pairs.\n" -"dictionary(seq) -> new dict initialized as if via:\n" +"dict(seq) -> new dictionary initialized as if via:\n" " d = {}\n" " for k, v in seq:\n" " d[k] = v"; @@ -1815,7 +1815,7 @@ static char dictionary_doc[] = PyTypeObject PyDict_Type = { PyObject_HEAD_INIT(&PyType_Type) 0, - "dictionary", + "dict", sizeof(dictobject), 0, (destructor)dict_dealloc, /* tp_dealloc */ |