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 meador.inge
Recipients meador.inge
Date 2011-12-18.18:20:21
SpamBayes Score 0.002542784
Marked as misclassified No
Message-id <1324232482.43.0.0474353637736.issue13629@psf.upfronthosting.co.za>
In-reply-to
Content
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':

   $ echo '2 << 1' | ./python -d | grep Token
   ...
   Token NUMBER/'2' ... It's a token we know
   Token RIGHTSHIFT/'<<' ... It's a token we know
   Token NUMBER/'1' ... It's a token we know
   Token NEWLINE/'' ... It's a token we know
   Token NEWLINE/'' ... It's a token we know
   Token ENDMARKER/'' ... It's a token we know

The fix is trivial.  Patch attached.
History
Date User Action Args
2011-12-18 18:21:22meador.ingesetrecipients: + meador.inge
2011-12-18 18:21:22meador.ingesetmessageid: <1324232482.43.0.0474353637736.issue13629@psf.upfronthosting.co.za>
2011-12-18 18:20:22meador.ingelinkissue13629 messages
2011-12-18 18:20:21meador.ingecreate