[Patches] [ python-Patches-1102710 ] ast-branch: hacks so asdl_c.py
generates compilable code
SourceForge.net
noreply at sourceforge.net
Mon Mar 21 00:43:28 CET 2005
Patches item #1102710, was opened at 2005-01-14 15:37
Message generated for change (Comment added) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1102710&group_id=5470
Category: Parser/Compiler
Group: AST
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: logistix (logistix)
Assigned to: Brett Cannon (bcannon)
Summary: ast-branch: hacks so asdl_c.py generates compilable code
Initial Comment:
This isn't the most clean or proper patch, but it makes
sure that asdl.c doesn't need to be edited by hand after
it is generated by asdl_c.py.
Implementing decorators and genexps will require
adjustments to the Python.asdl file, and I'd rather not
have to keep on re-correcting the output while
implementing them.
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2005-03-20 15:43
Message:
Logged In: YES
user_id=357491
I made everything more general (get_c_type() is your friend), but otherwise
I went with your changes. Fixed in rev.1.1.2.5 in Parser/asdl_c.py which
led to rev. 1.1.2.10 for Include/Python-ast.h and Python/Python-ast.c .
Also patched Makefile.pre.in so that Python-ast.* are rebuilt if asdl_c.py or
asdl.py are changed.
Thanks, logistix.
----------------------------------------------------------------------
Comment By: logistix (logistix)
Date: 2005-03-20 12:35
Message:
Logged In: YES
user_id=699438
Assigned to Brett per his python-dev post.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1102710&group_id=5470
More information about the Patches
mailing list