On 31/08/2020 01:14, Christopher Barker wrote:
On Sun, Aug 30, 2020 at 7:28 AM Barry <ba...@barrys-emacs.org
<mailto:ba...@barrys-emacs.org>> wrote:
How is it supposed to work with set or dict or other iterables
without clear order?
see the discussion in another recent thread about making dict
indexable -- which looks like it's not going to happen.
Unfortunately, there are a lot of those.
so no -- this should not work with general iterables, indexes don't
really make sense for iterables, only Sequences.
It would be as useful as:
>>> min(dict(b=1, c=3, a=2))
'a'
I half expected 1 (and from argmin would expect 'b') but I see why the
actual result is "consistent".
Jeff
_______________________________________________
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/GE5JFKDFNHVGZSMDGLWVI6GJRAFTS44G/
Code of Conduct: http://python.org/psf/codeofconduct/