On Thu, Sep 17, 2020 at 9:01 AM Paul Moore <p.f.mo...@gmail.com> wrote:

> On Thu, 17 Sep 2020 at 13:38, Dennis Sweeney
> <sweeney.dennis...@gmail.com> wrote:
> >
> > TL;DR: I propose the following behavior:
> >
> >     >>> s = "She turned me into a newt."
> >     >>> f"She turned me into a {animal}." = s
> >     >>> animal
> >     'newt'
>
> Something very similar to this already exists on PyPI:
> https://pypi.org/project/parse/


I like the idea and am another person that would definitely use it if such
a thing existed, but I agree that parse already makes this kind of thing
pretty easy to do.

I've at times wondered if something like parse should just become part of
the std lib. It seems like a library that could be made to be pretty
stable, and it doesn't seem like it is likely to grow many more features
than it already has.. from what I understand at least. So keeping it
outside the std lib to allow those features can evolve (which is the main
argument for keeping, for example, pytest out of the std lib, and for a
long time was the argument for attrs until dataclasses came along).

+0.

---
Ricky.

"I've never met a Kentucky man who wasn't either thinking about going home
or actually going home." - Happy Chandler
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/VXLUSR3YB2K7YUIEWZLNCOV4ZT5WRRAG/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to