On Fri, Sep 18, 2020, 8:17 AM Ricky Teachey <[email protected]> wrote:

>
> Why not just grow a parse method on str that returns a dict and do it this
> way?
>

> q = "{a} {b}"
> p = "1 2"
> (a, b) = q.parse(p)
>

Sorry that should have been:

(a, b) = q.parse(p).values()
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/N4YE64MVUPL5BWIMRROZAL3CFC4KT3FS/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to