f-string
Steve D'Aprano
steve+python at pearwood.info
Wed Dec 6 03:24:22 EST 2017
On Wed, 6 Dec 2017 12:21 pm, Chris Angelico wrote:
> On Wed, Dec 6, 2017 at 11:54 AM, John Pote <johnpote at jptechnical.co.uk>
> wrote:
>>
>> On 06/12/2017 00:16, Steve D'Aprano wrote:
>>>
>>> Anyone got a handy copy of Python 3.6 available to test something for me?
>>>
>>> What does compile('f"{spam} {eggs}"', '', 'single') return?
[...]
> I think Steve just wanted to see what we'd all define spam and eggs as.
>
> ChrisA
> *ducking for cover*
Possibly duck eggs :-)
I was thinking of responding to your comment on Python-Ideas that said there is
no way to represent an unevaluated f-string in Python, but then I decided that
even for me that was too pedantic.
--
Steve
â £Cheer up,â Ø they said, â £things could be worse.â Ø So I cheered up, and
sure
enough, things got worse.
More information about the Python-list
mailing list