[New-bugs-announce] [issue25886] ast module is combining string literals that are concatenated with plus operator

Myron Walker report at bugs.python.org
Wed Dec 16 16:45:04 EST 2015


New submission from Myron Walker:

ast module is combining string literals that are concatenated with plus operator into a single string in the parsestrplus module rather than maintaining the true syntax tree of the original document.

The fact that ast combines strings and does not maintain the original syntax of the document means that original syntax information is lost and a writer walking the abstract syntax tree is unable to reproduce the original syntax
of the document.

----------
components: Interpreter Core
messages: 256533
nosy: Myron Walker
priority: normal
severity: normal
status: open
title: ast module is combining string literals that are concatenated with plus operator
versions: Python 2.7

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


More information about the New-bugs-announce mailing list