This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients BTaskaya, eric.smith, gvanrossum, lukasz.langa, lys.nikolaou, pablogsal
Date 2020-10-08.00:19:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1602116346.6.0.44172169081.issue41967@roundup.psfhosted.org>
In-reply-to
Content
It's true that f-string expressions can't contain newlines.

f-strings are definitely easier, because the tokenizer has already tokenized the string from the input, so I'm just remembering pointers inside the tokenized string.

I was thinking that maybe you could get access to the buffer that the tokenizer is using. I'd have to check to see if it's guaranteed to all be in one contiguous buffer or not.

Anyway, since the problem is at least superficially similar (at least to me!), I thought I'd mention how f-strings handle it. There might not be anything of value here to take away.
History
Date User Action Args
2020-10-08 00:19:06eric.smithsetrecipients: + eric.smith, gvanrossum, lukasz.langa, lys.nikolaou, pablogsal, BTaskaya
2020-10-08 00:19:06eric.smithsetmessageid: <1602116346.6.0.44172169081.issue41967@roundup.psfhosted.org>
2020-10-08 00:19:06eric.smithlinkissue41967 messages
2020-10-08 00:19:06eric.smithcreate