summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-29 22:25:45 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-10-29 22:25:45 (GMT)
commita427a2b8d09a756119d424efac85159a0270b503 (patch)
treef94a983fe68890ca1b91d7dedefaebcd81284597 /Objects/dictobject.c
parent7ad2d1eb8eaf8db634b440ef3c4f5a1b9b654cb5 (diff)
downloadcpython-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.c10
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 */