mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
merge 3.4
This commit is contained in:
commit
dae2ef1cfa
3 changed files with 15 additions and 2 deletions
|
@ -102,8 +102,17 @@ partial_new(PyTypeObject *type, PyObject *args, PyObject *kw)
|
|||
}
|
||||
}
|
||||
else {
|
||||
pto->kw = pkw;
|
||||
Py_INCREF(pkw);
|
||||
if (pkw == Py_None) {
|
||||
pto->kw = PyDict_New();
|
||||
if (pto->kw == NULL) {
|
||||
Py_DECREF(pto);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
else {
|
||||
pto->kw = pkw;
|
||||
Py_INCREF(pkw);
|
||||
}
|
||||
}
|
||||
|
||||
pto->weakreflist = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue