cpython: ac4e8e6a7436 (original) (raw)
Mercurial > cpython
changeset 84672:ac4e8e6a7436
Issue #18408: Fix PyDict_GetItemString(), suppress PyUnicode_FromString() error As PyDict_GetItem(), PyDict_GetItemString() suppresses all errors that may occur for historical reasons. [#18408]
Victor Stinner victor.stinner@gmail.com | |
---|---|
date | Tue, 16 Jul 2013 22:16:05 +0200 |
parents | 395e67f348e7 |
children | 5beb1f12f19f |
files | Objects/dictobject.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-)[+] [-] Objects/dictobject.c 4 |
line wrap: on
line diff
--- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -2692,8 +2692,10 @@ PyDict_GetItemString(PyObject *v, const { PyObject *kv, *rv; kv = PyUnicode_FromString(key);