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 serhiy.storchaka
Recipients georg.brandl, meador.inge, serhiy.storchaka
Date 2015-10-06.15:36:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444145798.79.0.176080140328.issue25324@psf.upfronthosting.co.za>
In-reply-to
Content
Importing the tokenize modifies the content of the token module.

>>> import token
>>> len(token.tok_name)
59
>>> import tokenize
>>> len(token.tok_name)
61

Such side effect looks as bad design to me. Either token.tok_name should contain elements needed for tokenize, or tokenize should not modify token.tok_name.
History
Date User Action Args
2015-10-06 15:36:38serhiy.storchakasetrecipients: + serhiy.storchaka, georg.brandl, meador.inge
2015-10-06 15:36:38serhiy.storchakasetmessageid: <1444145798.79.0.176080140328.issue25324@psf.upfronthosting.co.za>
2015-10-06 15:36:38serhiy.storchakalinkissue25324 messages
2015-10-06 15:36:38serhiy.storchakacreate