[issue35494] Inaccurate error message for f-string

2019-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 58159ef856846d0235e0779aeb6013d70499570d by Serhiy Storchaka in branch 'master': bpo-35494: Improve syntax error messages for unbalanced parentheses in f-string. (GH-11161) https://github.com/python/cpython/commit/58159ef856846d0235e0779aeb60

[issue35494] Inaccurate error message for f-string

2019-01-11 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- type: -> enhancement versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 11161 uses an approach similar to issue33306. -- dependencies: +Improving SyntaxError for unmatched parentheses ___ Python tracker ___ _

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10397 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Sebastian Linke
Sebastian Linke added the comment: The same behavior applies to f'{spam[}' and f'{spam(}'. Also to f'{spam{}', but that might be expected. This message is more clear: >>> f'{spam(' File "", line 1 SyntaxError: f-string: mismatched '(', '{', or '[' Perhaps you want to apply that to the abov

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Eric V. Smith
Eric V. Smith added the comment: Go ahead, Serhiy. Thanks! -- assignee: eric.smith -> serhiy.storchaka ___ Python tracker ___ ___ P

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can take this issue if you do not mind. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue35494] Inaccurate error message for f-string

2018-12-14 Thread Sebastian Linke
New submission from Sebastian Linke : Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:05:16) [MSC v.1915 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> spam = 'spam' >>> f'{spam[0}' File "", line 1 SyntaxError: f-string: expecting '}' The