[issue10769] ast: provide more useful range information

Raymond Hettinger report at bugs.python.org
Fri Dec 24 20:02:53 CET 2010


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

ISTM the whole point of an Abstract Syntax Tree is to express semantics while throwing away the syntax details.  The only reason any position information is kept is to support tracebacks and debugging.  

Perhaps the OP's request should changed to "add function to concrete parse trees to show structure while preserving all the input detail returned by tokenize."

----------
nosy: +rhettinger

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10769>
_______________________________________


More information about the Python-bugs-list mailing list