[Python-Dev] Generated code in test_ast.py (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Thu Mar 9 23:59:57 CET 2006


Grant Olson wrote:

I’m finishing up a patch for bug 1441408. I had to change the asdl definitions which in turn caused a failure in testast.py. A comment in the file indicates that #### EVERYTHING BELOW IS GENERATED ##### and has a definition for Slice() that is no longer valid. Can anyone tell me how this is generated? Should it be automatically generated when I run asdlc.py?

You run it with -g, then manually put the output into the test case.

I'm developing on Windows. I know in the past some of the autogenerated code from the ast-branch worked better via make. Would this have fixed itself on a linux box, or is this a manual process?

It's a manual process.

Regards, Martin



More information about the Python-Dev mailing list