[Python-ideas] f-string "debug" conversion
Steven D'Aprano
steve at pearwood.info
Wed Oct 3 05:52:53 EDT 2018
On Wed, Oct 03, 2018 at 10:48:31AM +0200, Anders Hovmöller wrote:
>
> >> and much more readable.
> >
> > So you say.
> >
> > To me that looks like a regular function call, which calls an ordinary
> > function "debug" and takes a simple keyword argument next with value
> > "value+1".
>
> That was what it was. That was not intended to be about magic, that
> was the normal case where you didn't want the magic.
Oh I'm sorry, I admit I read your earlier post wrongly. I missed that
you were focused on the "=args" syntactic sugar and imagined you were
proposing a magic debug() function as an alternative to this proposed
f-string feature.
The perils of skim reading. Mea culpa.
--
Steve
More information about the Python-ideas
mailing list