[issue40267] Error message differs when an expression is in an fstring

2020-04-15 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40267] Error message differs when an expression is in an fstring

2020-04-15 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 9a4b38f66b3e674db94e07980e1cacb39e388c73 by Lysandros Nikolaou in branch 'master': bpo-40267: Fix message when last input character produces a SyntaxError (GH-19521) https://github.com/python/cpython/commit/9a4b38f66b3e674db94e07980e1cacb39e3

[issue40267] Error message differs when an expression is in an fstring

2020-04-14 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- keywords: +patch pull_requests: +18871 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19521 ___ Python tracker _

[issue40267] Error message differs when an expression is in an fstring

2020-04-13 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue40267] Error message differs when an expression is in an fstring

2020-04-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue40267] Error message differs when an expression is in an fstring

2020-04-13 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue40267] Error message differs when an expression is in an fstring

2020-04-12 Thread Lysandros Nikolaou
Lysandros Nikolaou added the comment: It seems that this is actually a bit bigger than this and it is not specific to f-strings. The error message *always* changes to `unexpected EOF while parsing` if there is an error with the last character of the input and no newline follows. For exampl

[issue40267] Error message differs when an expression is in an fstring

2020-04-12 Thread Lysandros Nikolaou
New submission from Lysandros Nikolaou : There are cases, where the error message differs, when an expression is being parsed inside an fstring. For example: >>> f'{x+}' File "", line 1 (x+) ^ SyntaxError: unexpected EOF while parsing >>> (x+) File "", line 1 (x+) ^ S