SF bug #1048870: call arg of lambda not updating

This commit is contained in:
Raymond Hettinger 2004-10-24 00:10:06 +00:00
parent 7cb13a971d
commit 9047c8f73d
3 changed files with 15 additions and 1 deletions

View file

@ -261,6 +261,8 @@ code_compare(PyCodeObject *co, PyCodeObject *cp)
if (cmp) return (cmp<0)?-1:1;
cmp = co->co_flags - cp->co_flags;
if (cmp) return (cmp<0)?-1:1;
cmp = co->co_firstlineno - cp->co_firstlineno;
if (cmp) return (cmp<0)?-1:1;
cmp = PyObject_Compare(co->co_code, cp->co_code);
if (cmp) return cmp;
cmp = PyObject_Compare(co->co_consts, cp->co_consts);