mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
merge 3.2
This commit is contained in:
commit
591c921411
1 changed files with 1 additions and 1 deletions
|
@ -1707,7 +1707,7 @@ dict_fromkeys(PyObject *cls, PyObject *args)
|
|||
if (d == NULL)
|
||||
return NULL;
|
||||
|
||||
if (PyDict_CheckExact(d) && PyDict_Size(d) == 0) {
|
||||
if (PyDict_CheckExact(d) && ((PyDictObject *)d)->ma_used == 0) {
|
||||
if (PyDict_CheckExact(seq)) {
|
||||
PyDictObject *mp = (PyDictObject *)d;
|
||||
PyObject *oldvalue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue