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 eric.snow
Recipients eric.snow
Date 2012-10-14.05:49:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
If you pass an iterable of tokens and none of them are an ENCODING token, tokenize.untokenize() returns a string.  This is contrary to what the docs say:

   It returns bytes, encoded using the ENCODING token, which is the
   first token sequence output by tokenize().

Either the docs should be clarified or untokenize() fixed.  My vote is to fix it.  It could check that the first token is an ENCODING token and raise an exception.  Alternately it could fall back to using 'utf-8' by default.

Date User Action Args
2012-10-14 05:49:11eric.snowsetrecipients: + eric.snow
2012-10-14 05:49:11eric.snowsetmessageid: <>
2012-10-14 05:49:11eric.snowlinkissue16223 messages
2012-10-14 05:49:10eric.snowcreate