On 11/23/2020 5:44 PM, David Mertz wrote:
Sorry I wasn't clear. I wouldn't want a syntax change specific to matching if it could be done with a library. I just don't think it can be done with a library without other language changes. But I think those other language changes could be used in ways outside of just matching.I'd put the question this way: assuming Matcher can be written (with a bit of stack magic), and assuming that the strings inside m.case() calls are exactly the same mini-languague PEP 634 proposes, would you want a syntax change?No, I wouldn't!Is one of us mixing up negations? Are you saying you do NOT support PEP 634 (i.e. syntax change)? A reasonable enough opinion that several core developers hold. Just trying to understand.
Eric
_______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/B3ARZOBDOK7TGEGSJ4VI745ISXOGYDI2/ Code of Conduct: http://python.org/psf/codeofconduct/