[Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation (original) (raw)
Paul Moore p.f.moore at gmail.com
Wed Nov 9 11:35:24 EST 2016
- Previous message (by thread): [Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation
- Next message (by thread): [Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 9 November 2016 at 16:20, Fabio Zadrozny <fabiofz at gmail.com> wrote:
Also, as a feedback, I found it a bit odd that there can't be any space nor new line between the last format specifiers and '}'
FWIW, that is the case for normal format strings, as well:
print("{!r\n}".format(12)) Traceback (most recent call last): File "", line 1, in ValueError: expected ':' after conversion specifier
I guess the behaviour is simply inherited from there.
Paul
- Previous message (by thread): [Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation
- Next message (by thread): [Python-Dev] Parsing f-strings from PEP 498 -- Literal String Interpolation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]