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 -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/2S2LFPQGFVOBPXEA26AVNMI533ILBGTU/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to