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 don't have a strong opinion on whether it would be useful in the
stdlib, other than to say that I've never personally used it, so it's
not that significant a need for me.

Paul
_______________________________________________
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/HTJYXQVGR5OLPKZH6LQGIQ6FEG3YCE6H/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to