This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ast-branch: hacks so asdl_c.py generates compilable code
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, logistix
Priority: normal Keywords: patch

Created on 2005-01-14 23:37 by logistix, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
codegen_for_asdl_c.diff logistix, 2005-01-14 23:37 hacks so that asdl_c.py generates a compilable c file
Messages (3)
msg47538 - (view) Author: Grant Olson (logistix) Date: 2005-01-14 23:37
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.
msg47539 - (view) Author: Grant Olson (logistix) Date: 2005-03-20 20:35
Logged In: YES 
user_id=699438

Assigned to Brett per his python-dev post.
msg47540 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2005-03-20 23:43
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.
History
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41442
2005-01-14 23:37:46logistixcreate