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 lys.nikolaou
Recipients BTaskaya, lys.nikolaou, pablogsal, pfalcon, serhiy.storchaka
Date 2020-12-24.12:50:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608814256.45.0.0541593846694.issue42729@roundup.psfhosted.org>
In-reply-to
Content
The thing is that the parser itself does not get a stream of tokens as input. It only accepts either a file or a string and it lazily converts its input to tokens.

As for the PR attached to this patch, I'm -1 on that. I don't think the usecase is common enough for us to have another public function, that we need to maintain and keep backwards-compatible. I concur with Batuhan that if people need this, they can use ast.parse with tokenize.untokenize.
History
Date User Action Args
2020-12-24 12:50:56lys.nikolaousetrecipients: + lys.nikolaou, pfalcon, serhiy.storchaka, pablogsal, BTaskaya
2020-12-24 12:50:56lys.nikolaousetmessageid: <1608814256.45.0.0541593846694.issue42729@roundup.psfhosted.org>
2020-12-24 12:50:56lys.nikolaoulinkissue42729 messages
2020-12-24 12:50:56lys.nikolaoucreate