[Python-ideas] Dictionary views are not entirely 'set like'
Chris Angelico
rosuav at gmail.com
Wed Apr 6 09:15:24 EDT 2016
On Wed, Apr 6, 2016 at 11:03 PM, Rob Cliffe <rob.cliffe at btinternet.com> wrote:
> Something has changed then, because in Python 2.7.10 I get
> ##1,3 TypeError
> ##9,10 True
> I can't see anything wrong with the actual behaviour in any of the examples.
Python 2.7 has very different handling of .keys() and .values() on
dictionaries - they return lists instead of views. You can ignore 2.7
for the purposes of this discussion - it's not "set-like" in the way
that's being considered here.
ChrisA
More information about the Python-ideas
mailing list