New submission from Thomas Lee <[EMAIL PROTECTED]>: 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. ---------- components: Build files: graminit-dependencies.patch keywords: patch messages: 76010 nosy: thomas.lee severity: normal status: open title: Dependencies of graminit.h are not rebuilt when the file is regenerated type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file12046/graminit-dependencies.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4347> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com