On Tue, Feb 28, 2017 at 07:10:15PM +0100, Sven R. Kunze wrote:

> 1. advantage: it looks like dict access -> allows duck typing (oh how 
> often I'd missed that)

Dicts and lists don't duck-type because they are very different things.

We know what ["item"]*10 does. What would {"key": "value"}*10 do?

What would list.values() iterate over?


-- 
Steve
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to