diff Python/compile.c @ 33822:bf18caca0730 legacy-trunk

SF bug #1048870: call arg of lambda not updating
author Raymond Hettinger <python@rcn.com>
date Sun, 24 Oct 2004 00:10:06 +0000
parents 0ae0bef10014
children fdce3d39bec1
line wrap: on
line diff
--- a/Python/compile.c	Sat Oct 23 03:48:57 2004 +0000
+++ b/Python/compile.c	Sun Oct 24 00:10:06 2004 +0000
@@ -261,6 +261,8 @@
 	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);