On Sun, Dec 27, 2020 at 1:45 PM Greg Ewing <greg.ew...@canterbury.ac.nz> wrote:
>
> On 27/12/20 3:03 pm, Chris Angelico wrote:
> > But that would mean that a lot of iterables would look like mappings
> > when they're not.
>
> In the context of ** you're expecting a mapping, not a sequence.
>

Exactly; and under the proposal I was replying to, ANY object would
look like a mapping if you can iterate over it and subscript it -
which means all sequences look like mappings, just broken ones.

ChrisA
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/SRQFBK65CGYETKVHZPFCY6NNA4N73NBW/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to