[issue25131] The AST for dict and set displays has the lineno of the first value

2015-09-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f14afc959df by Benjamin Peterson in branch '3.5': make opening brace of container literals and comprehensions correspond to the line number and col offset of the AST node (closes #25131) https://hg.python.org/cpython/rev/4f14afc959df New changeset

[issue25131] The AST for dict and set displays has the lineno of the first value

2015-09-23 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +3.5regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue25131] The AST for dict and set displays has the lineno of the first value

2015-09-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: A fix should include a new ast test, such as self.assertEqual(parse("{\n1:2}").body[0].value.lineno, 1) I verified that the equivalent assert passes on 3.4.3, fails on 3.5.0. -- nosy: +terry.reedy stage: -> test needed ___

[issue25131] The AST for dict and set displays has the lineno of the first value

2015-09-15 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +neil.g ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue25131] The AST for dict and set displays has the lineno of the first value

2015-09-15 Thread STINNER Victor
STINNER Victor added the comment: Using hg bisect, I found the revision a65f685ba8c0: changeset: 95886:a65f685ba8c0 user:Benjamin Peterson date:Tue May 05 20:16:41 2015 -0400 files: G

[issue25131] The AST for dict and set displays has the lineno of the first value

2015-09-15 Thread Claudiu Popa
New submission from Claudiu Popa: Hi, In Python 3.5, the lineno for dict and set display ASTs is the line number of the first value, not the line number of the display character, as it was until 3.5. Here's an example: from ast import parse module = parse('''{ '1':'2', } '