Re: [Python-Dev] Move encoding_decl to the top of Grammar/Grammar?

2008-12-02 Thread Thomas Lee
Here's the corresponding tracker issue: http://bugs.python.org/issue4347 I've uploaded a patch there anyway, since I'm going to need this stuff working for a presentation I'm giving tomorrow. Cheers, T Thomas Lee wrote: Hi all, Currently, Parser/parsetok.c has a dependency on graminit.h. T

[Python-Dev] Move encoding_decl to the top of Grammar/Grammar?

2008-12-01 Thread Thomas Lee
Hi all, Currently, Parser/parsetok.c has a dependency on graminit.h. This can cause headaches when rebuilding after adding new syntax to Grammar/Grammar because parsetok.c is part of pgen, which is responsible for *generating* graminit.h. This circular dependency can result in parsetok.c us