31.05.17 20:58, Brett Cannon пише:
I assume there's a build rule for Python/graminit.c and porting pgen to Python would require Python be installed to do a build from scratch. Have we made that a requirement yet? If so then rewriting pgen in Python would make it easier to maintain (although when was the last time anyone touched that file?).

That is why generated C files are added to the repository. There are precedences: Include/Python-ast.h, Python/Python-ast.c, Include/opcode.h, Python/opcode_targets.h, Objects/typeslots.inc, Objects/unicodetype_db.h, Modules/cjkcodecs/mappings_*.h, Modules/sre_constants.h, Modules/_ssl_data.h, and a number of **/clinic/*.h files are generated by Python scripts.

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to