You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ast
AST nodes now have end_lineno and end_col_offset attributes, which give the precise location of the end of the node. (This only applies to nodes that have lineno and col_offset attributes.)
New function ast.get_source_segment() returns the source code for a specific AST node.
From Python 3.8 release notes:
https://docs.python.org/3/whatsnew/3.8.html#ast
CodeLocator (https://github.com/peopledoc/raincoat/blob/master/raincoat/parse.py#L9) can be simplified for 3.8.
The text was updated successfully, but these errors were encountered: