mirror of
https://github.com/python/cpython.git
synced 2025-11-25 12:44:13 +00:00
Merged revisions 59212-59225 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r59218 | georg.brandl | 2007-11-29 09:01:20 -0800 (Thu, 29 Nov 2007) | 2 lines Fix reference target. ........ r59219 | georg.brandl | 2007-11-29 09:02:34 -0800 (Thu, 29 Nov 2007) | 4 lines Add examples to the ConfigParser documentation. Credits go to Thomas Lamb, who wrote this as a task in the GHOP contest. ........ r59223 | guido.van.rossum | 2007-11-29 10:25:12 -0800 (Thu, 29 Nov 2007) | 2 lines Fix bug #1517, a segfault in lookdict(). ........ r59224 | georg.brandl | 2007-11-29 10:33:01 -0800 (Thu, 29 Nov 2007) | 2 lines Spaces vs. Tabs. ........
This commit is contained in:
parent
5c10664043
commit
2fd4f37f11
3 changed files with 92 additions and 0 deletions
|
|
@ -270,7 +270,9 @@ lookdict(PyDictObject *mp, PyObject *key, register long hash)
|
|||
else {
|
||||
if (ep->me_hash == hash) {
|
||||
startkey = ep->me_key;
|
||||
Py_INCREF(startkey);
|
||||
cmp = PyObject_RichCompareBool(startkey, key, Py_EQ);
|
||||
Py_DECREF(startkey);
|
||||
if (cmp < 0)
|
||||
return NULL;
|
||||
if (ep0 == mp->ma_table && ep->me_key == startkey) {
|
||||
|
|
@ -300,7 +302,9 @@ lookdict(PyDictObject *mp, PyObject *key, register long hash)
|
|||
return ep;
|
||||
if (ep->me_hash == hash && ep->me_key != dummy) {
|
||||
startkey = ep->me_key;
|
||||
Py_INCREF(startkey);
|
||||
cmp = PyObject_RichCompareBool(startkey, key, Py_EQ);
|
||||
Py_DECREF(startkey);
|
||||
if (cmp < 0)
|
||||
return NULL;
|
||||
if (ep0 == mp->ma_table && ep->me_key == startkey) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue