21 Nov
2021
21 Nov
'21
10:19 p.m.
Neil Girdhar wrote:
I wish this had gotten more attention! :)
I wonder what the various projects are doing to handle the latest version of Python, if they need a parse tree with whitespace information. (The projects I know of are yapf, black, mypy, pytype, kythe -- are there others?) ast.parse() has an option `type_comments`, so certain kinds of comments are handled -- I wonder how much work it would be to extend this to handle all whitespace?