On Thu, Mar 17, 2022 at 08:38:19AM -0400, Ricky Teachey wrote:

> Not a pro or con just an observation: since dictionaries are ordered now
> people would also (somewhat reasonably, imo) want to be able to splice
> them, too.

Dicts are not sequences. They might preserve insertion order, but that 
is not the same as being orderable, sortable, or being able to access 
keys or values by index.

There is no reason why one cannot build an indexable dict that supports 
this functionality, but the trade-offs to allow slicing and indexing of 
such a dict would be different from the trade-offs desired for builtin 
dicts in Python.


-- 
Steve
_______________________________________________
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/NQ2W3VI3Q2DQDDY25LCBY23LHRGCIMUO/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to