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


Groups > comp.lang.python > #102696

Re: Set Operations on Dicts

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Ben Finney <ben+python@benfinney.id.au>
Newsgroups comp.lang.python
Subject Re: Set Operations on Dicts
Date Tue, 09 Feb 2016 10:32:59 +1100
Lines 19
Message-ID <mailman.113.1454974389.2317.python-list@python.org> (permalink)
References <CAF0cjT92Xhmk1y1Q1tNjOP5Twu=PdOA314dxP2oo=F33A7Xo5Q@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace news.uni-berlin.de JJ0+OVeWY14S/x6V9S5M4w3kfE+vCDfy3NnRI3xP0lkw==
Cancel-Lock sha1:+zGm0ArQ9FrE/DgX9rEyANx5zw8=
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.010
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'incorrect': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; ':-)': 0.12; 'parks': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'unhelpful': 0.16; 'basically': 0.18; 'seems': 0.23; 'passing': 0.23; 'sets': 0.23; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'went': 0.28; 'parking': 0.29; 'wright': 0.29; 'operations': 0.31; 'values.': 0.33; 'court': 0.35; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'say': 0.37; 'received:org': 0.37; 'to:addr:python.org': 0.40; 'easy': 0.60; '_o__)': 0.84; 'pleaded': 0.84; 'received:125': 0.84; 'subject:Set': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host jigong.madmonks.org
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:102696

Show key headers only | 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