On Thu, Sep 17, 2020 at 1:23 PM Chris Angelico <rosuav@gmail.com> wrote:

And that's why the directives are NOT just a pure mirroring of format
string directives. Look at C's scanf and printf functions - they
correspond in many ways, but they differ in order to be useful.

Exactly -- but the C ones are a lot simpler an more constrained, so it's a pretty good match.

The
point isn't to reverse format(), the point is to have a useful and
practical string parser that assigns directly to variables.

I don't think there's one point in this thread. and the OP certainly presented it as reversing a fstring format.

 > Also, PEP 622.

yup -- at a glance, I like that a lot better.

-CHB


--
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython