Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102696

Re: Set Operations on Dicts

From Ben Finney <ben+python@benfinney.id.au>
Newsgroups comp.lang.python
Subject Re: Set Operations on Dicts
Date 2016-02-09 10:32 +1100
Message-ID <mailman.113.1454974389.2317.python-list@python.org> (permalink)
References <CAF0cjT92Xhmk1y1Q1tNjOP5Twu=PdOA314dxP2oo=F33A7Xo5Q@mail.gmail.com>

Show all headers | View raw


Marco Kaulea <marco.kaulea@gmail.com> writes:

> In one talk (I think it was [1]) it was described that sets are basically
> dicts without the values.

It seems an unhelpful thing to say about ‘set’, I disagree with that
characterisation.

> Therefor it should be easy to apply set operations on dicts

Yes, that's one reason I disagree; it leads to incorrect inferences like
this :-)

-- 
 \        “I went to court for a parking ticket; I pleaded insanity. I |
  `\   said ‘Your Honour, who in their right mind parks in the passing |
_o__)                                           lane?’” —Steven Wright |
Ben Finney

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Set Operations on Dicts Ben Finney <ben+python@benfinney.id.au> - 2016-02-09 10:32 +1100

csiph-web