[Python-ideas] f-string "debug" conversion
Eric V. Smith
eric at trueblade.com
Thu Oct 4 07:41:44 EDT 2018
On 10/3/2018 8:47 PM, Tim Peters wrote:
> Note that transforming
>
> {EXPR!d:FMT}
>
> into
>
> EXPR={repr(EXPR):FMT}
>
> is actually slightly more involved than transforming it into
>
> EXPR={EXPR:FMT}
>
> so I don't buy the argument that the original idea is simpler. More
> magical and less useful, yes ;-)
Actually, my proposal is to apply FMT to the entire result of
EXPR={repr(EXPR)}, not just the repr(EXPR) part. I'm not sure either is
particularly useful.
Eric
More information about the Python-ideas
mailing list