<div dir="ltr">Thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 20, 2015 at 12:09 PM, Benjamin Peterson <span dir="ltr"><<a href="mailto:benjamin@python.org" target="_blank">benjamin@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">$ ./python Lib/test/test_ast.py -g<br>
exec_results = [<br>
('Module', [('Expr', (1, 0), ('NameConstant', (1, 0), None))]),<br>
('Module', [('FunctionDef', (1, 0), 'f', ('arguments', [], None, [], [],<br>
None, []), [('Pass', (1, 9))], [], None)]),<br>
('Module', [('FunctionDef', (1, 0), 'f', ('arguments', [('arg', (1, 6),<br>
'a', None)], None, [], [], None, []), [('Pass', (1, 10))], [], None)]),<br>
('Module', [('FunctionDef', (1, 0), 'f', ('arguments', [('arg', (1, 6),<br>
'a', None)], None, [], [], None, [('Num', (1, 8), 0)]), [('Pass', (1,<br>
12))], [], None)]),<br>
('Module', [('FunctionDef', (1, 0), 'f', ('arguments', [], ('arg', (1,<br>
7), 'args', None), [], [], None, []), [('Pass', (1, 14))], [], None)]),<br>
('Module', [('FunctionDef', (1, 0), 'f', ('arguments', [], None, [], [],<br>
('arg', (1, 8), 'kwargs', None), []), [('Pass', (1, 17))], [], None)]),<br>
....<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Jan 20, 2015, at 12:06, Neil Girdhar wrote:<br>
> Hi Benjamin,<br>
><br>
> I'm having trouble finding where it is generating the lines below<br>
><br>
> #### EVERYTHING BELOW IS GENERATED #####<br>
><br>
> Neither a call to test_ast nor a make (in case it's generated somewhere<br>
> else) regenerate those lines if they have been removed.<br>
><br>
> How were those lines generated?<br>
><br>
> Best,<br>
> Neil<br>
><br>
><br>
> On Tue, Jan 20, 2015 at 11:36 AM, Benjamin Peterson <<a href="mailto:benjamin@python.org">benjamin@python.org</a>><br>
> wrote:<br>
><br>
> ><br>
> ><br>
> > On Tue, Jan 20, 2015, at 11:34, Neil Girdhar wrote:<br>
> > > My question first:<br>
> > > test_ast is mostly generated code, but I can't find where it is being<br>
> > > generated. I am pretty sure I know how to fix most of the introduced<br>
> > > problems. Who is generating test_ast??<br>
> ><br>
> > It generates itself.<br>
> ><br>
</div></div></blockquote></div><br></div>