mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Rename "dictionary" (type and constructor) to "dict".
This commit is contained in:
parent
7ad2d1eb8e
commit
a427a2b8d0
10 changed files with 66 additions and 63 deletions
|
|
@ -2484,7 +2484,7 @@ tp_new_wrapper(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
}
|
||||
|
||||
/* Check that the use doesn't do something silly and unsafe like
|
||||
object.__new__(dictionary). To do this, we check that the
|
||||
object.__new__(dict). To do this, we check that the
|
||||
most derived base that's not a heap type is this type. */
|
||||
staticbase = subtype;
|
||||
while (staticbase && (staticbase->tp_flags & Py_TPFLAGS_HEAPTYPE))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue