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 edreamleo
Recipients edreamleo
Date 2019-11-03.13:23:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572787434.22.0.174159908282.issue38663@roundup.psfhosted.org>
In-reply-to
Content
This post
https://groups.google.com/d/msg/leo-editor/DpZ2cMS03WE/VPqtB9lTEAAJ
discusses a complete rewrite of tokenizer.untokenize.

To quote from the post:

I have "discovered" a spectacular replacement for Untokenizer.untokenize in python's tokenize library module. The wretched, buggy, and impossible-to-fix add_whitespace method is gone. The new code has no significant 'if' statements, and knows almost nothing about tokens!  This is the way untokenize is written in The Book.

The new code should put an end to a long series of issues against untokenize code in python's tokenize library module.  Some closed issues were blunders arising from dumbing-down the TestRoundtrip.check_roundtrip method in test_tokenize.py. 

Imo, the way is now clear for proper unit testing of python's Untokenize class.
History
Date User Action Args
2019-11-03 13:23:54edreamleosetrecipients: + edreamleo
2019-11-03 13:23:54edreamleosetmessageid: <1572787434.22.0.174159908282.issue38663@roundup.psfhosted.org>
2019-11-03 13:23:54edreamleolinkissue38663 messages
2019-11-03 13:23:53edreamleocreate