Mateusz Bysiek added the comment: For some time now, there's an alternate ast implementation https://github.com/python/typed_ast that carries PEP 484 type comments with the AST as attributes of certain nodes.
Their approach is described here: https://github.com/python/typed_ast/blob/master/typed_ast/ast3.py#L5 If type comments become mainstream in Python, could this approach maybe be adopted as official Python AST at some point? ---------- nosy: +mbdevpl _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24119> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com