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.

Author thomaslee
Recipients thomaslee
Date 2008-11-18.15:28:08
SpamBayes Score 2.0059684e-07
Marked as misclassified No
Message-id <1227022091.75.0.852526924329.issue4347@psf.upfronthosting.co.za>
In-reply-to
Content
It's important that dependencies of grammar.h get rebuilt if graminit.h
is regenerated (e.g. the Grammar is modified). If these dependencies do
not get rebuilt, the constants associated with each type of parse node
will have inconsistent values between the different intermediate files.

The net result is that a program afflicted by this might build without
errors, but then crash unexpectedly at runtime due to the inconsistent
constant values.

The patch is quite simple and ensures that all files that currently
depend on graminit.h are rebuilt if it changes.

It also removes an unnecessary #include from Python/future.c.

I believe a similar situation might occur with Python-ast.h and the
*_kind enumerations, but have yet to run into such a specific issue.
I'll post a separate patch if I do find this to be a problem.
History
Date User Action Args
2008-11-18 15:28:11thomasleesetrecipients: + thomaslee
2008-11-18 15:28:11thomasleesetmessageid: <1227022091.75.0.852526924329.issue4347@psf.upfronthosting.co.za>
2008-11-18 15:28:10thomasleelinkissue4347 messages
2008-11-18 15:28:10thomasleecreate