Wow, thanks for this.  Can't believe I've missed that.

This will save me hours over the course of a year.

Jake

On Wed, May 29, 2024 at 10:44 AM Thomas Passin <[email protected]> wrote:

> This has been in Python since version 3.8 but I just learned about it
> today. It's probably most useful for debugging.  If you end the expression
> in curly braces with an equals sign, the result will display
> <expression>=<value> -
>
> >>>some_list = ['a','b','c']
> >>>print(f'{some_list=}')
> some_list=['a', 'b', 'c']
>
> --
> You received this message because you are subscribed to the Google Groups
> "leo-editor" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/leo-editor/cf704c8e-076a-4b56-a382-2d18b2282eb2n%40googlegroups.com
> <https://groups.google.com/d/msgid/leo-editor/cf704c8e-076a-4b56-a382-2d18b2282eb2n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAJ1i%2BSYQydCngkMUzfaFc%3Dwgf%2Bk5G9O5QjX36nb4KYqA%3DBYfKg%40mail.gmail.com.

Reply via email to