[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2012-01-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1c0c6fa7341c by Meador Inge in branch '3.2': Issue #13629: Renumber the tokens in token.h to match the _PyParser_TokenNames indexes. http://hg.python.org/cpython/rev/1c0c6fa7341c New changeset c0660d7cc1fe by

[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2012-01-15 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13629 ___

[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2012-01-12 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Here is a patch that renumber the tokens. I also regenerated token.py. -- nosy: +georg.brandl Added file: http://bugs.python.org/file24225/renumber-tokens.patch ___ Python tracker

[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2011-12-18 Thread Meador Inge
New submission from Meador Inge mead...@gmail.com: When making the changes to remove backticks in eb2f70fdbf32, the _PyParser_TokenNames table was incorrectly updated. Now the indexes into _PyParser_TokenNames don't match the token numbers. This can be seen in the output of 'python -d':

[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2011-12-18 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Is there a reason not to renumber token.h? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13629 ___

[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2011-12-18 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Is there a reason not to renumber token.h? I thought about that, but at the time I wasn't sure whether or not that would break anything. I went with the current patch because it is lower risk. On the other hand, proper clients of token.h