Message383687
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. |
|
Date |
User |
Action |
Args |
2020-12-24 12:50:56 | lys.nikolaou | set | recipients:
+ lys.nikolaou, pfalcon, serhiy.storchaka, pablogsal, BTaskaya |
2020-12-24 12:50:56 | lys.nikolaou | set | messageid: <1608814256.45.0.0541593846694.issue42729@roundup.psfhosted.org> |
2020-12-24 12:50:56 | lys.nikolaou | link | issue42729 messages |
2020-12-24 12:50:56 | lys.nikolaou | create | |
|