18 Sep
2020
18 Sep
'20
12:29 p.m.
On Fri, Sep 18, 2020 at 10:26 PM Ricky Teachey <ricky@teachey.org> wrote:
On Fri, Sep 18, 2020, 8:17 AM Ricky Teachey <ricky@teachey.org> 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()
You're using a dictionary as if it were a tuple. That's going to cause a LOT of pain when someone does something like: a, b = "{b} {a}".parse(p).values() and they come out in the wrong order. Bad bad bad idea. Don't have names if they're going to be pure lies. ChrisA