[Python-Dev] Re: PEP 622: Structural Pattern Matching

2020年6月24日 22:12:26 -0700

On 25/06/20 6:36 am, Brandt Bucher wrote:
Another option I've considered is using the `keys` method, since most non-dict 
mappings would get this called anyways for patterns with `**rest`.
All the more reason why we should allow the implementation some flexibility. ;)
My concern was only that it might be using some private feature of
collections.defaultdict to get the specified behaviour. But if it's
only using the standard mapping protocol, I don't think it matters
exactly how it's using it.
--
Greg
_______________________________________________
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/2S2LFPQGFVOBPXEA26AVNMI533ILBGTU/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to