[Python-Dev] Summary of Python tracker Issues

2021-06-25 Thread Python tracker
ACTIVITY SUMMARY (2021-06-18 - 2021-06-25) Python tracker at https://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open7410 (-36) closed 48834 (+91) total 56244 (+55) Open issues

[Python-Dev] Re: Delayed evaluation of f-strings?

2021-06-25 Thread Eric Nieuwland
> On 24 Jun 2021, at 10:28, micro codery wrote: > > As pointed out already, f-strings and format are subtly different (not > counting that one can eval and the other cannot). Besides quoting, the > f-sting mini language has diverged from format's spam="Spam" f"{spam=}" > "spam='Spam'"

[Python-Dev] Re: Delayed evaluation of f-strings?

2021-06-25 Thread Eric V. Smith
On 6/24/2021 11:28 PM, Guido van Rossum wrote: On Thu, Jun 24, 2021 at 10:34 AM micro codery > wrote: As pointed out already, f-strings and format are subtly different (not counting that one can eval and the other cannot). Besides quoting, the f-sting mini

[Python-Dev] Re: Delayed evaluation of f-strings?

2021-06-25 Thread Serhiy Storchaka
24.06.21 12:37, Eric Nieuwland пише: > In a recent discussion with a colleague we wondered if it would be > possible to postpone the evaluation of an f-string so we could use it > like a regular string and .format() or ‘%’. You can just use lambda: delayed_fstring = lambda: f"The current