[Python-Dev] Re: [Python-checkins] python/dist/src/Python compile.c, 2.330, 2.331

Guido van Rossum gvanrossum at gmail.com
Sun Oct 24 18:43:16 CEST 2004


Haven't seen the bug report, but you do realize that comparing code
objects has other applications, and this pretty much kills that.


On Sat, 23 Oct 2004 17:10:09 -0700, rhettinger at users.sourceforge.net
<rhettinger at users.sourceforge.net> wrote:
> Update of /cvsroot/python/python/dist/src/Python
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30133/Python
> 
> Modified Files:
>         compile.c
> Log Message:
> SF bug #1048870:  call arg of lambda not updating
> 
> Index: compile.c
> ===================================================================
> RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
> retrieving revision 2.330
> retrieving revision 2.331
> diff -u -d -r2.330 -r2.331
> --- compile.c   29 Sep 2004 23:54:08 -0000      2.330
> +++ compile.c   24 Oct 2004 00:10:05 -0000      2.331
> @@ -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);
> 
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
> 


-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list