[Python-Dev] Re: [Python-checkins] python/dist/src/Python pythonrun.c, 2.161.2.15, 2.161.2.16

olsongt at verizon.net olsongt at verizon.net
Fri Jan 7 22:37:47 CET 2005


> 
> From: kbk at shore.net (Kurt B. Kaiser)
> Date: 2005/01/07 Fri PM 09:18:11 GMT
> To: python-dev at python.org
> Subject: Re: [Python-Dev] Re: [Python-checkins] python/dist/src/Python
> 	pythonrun.c, 2.161.2.15, 2.161.2.16
> 
> Jeremy Hylton <jhylton at gmail.com> writes:
> 
> > How's the merge going?
> 
> Looks like it's done.  I tagged ast-branch when I finished:
> 
> merged_from_MAIN_07JAN05
> 
> Right now I'm trying to get Python-ast.c to compile.  It wasn't
> modified by the merge, so there's some other issue.
> 

Python-ast.c should be autogenerated in the make process by asdl_c.py.  There are still some bugs in it.  The fix I think you need is posted.  A full diff against the current python_ast.c is attached to patch 742621.

@@ -1310,7 +1310,7 @@
                 free_expr(o->v.Repr.value);
                 break;
         case Num_kind:
-                Py_DECREF(o->v.Num.n);
+                free_expr(o->v.Num.n);
                 break;
         case Str_kind:
                 Py_DECREF(o->v.Str.s)



More information about the Python-Dev mailing list