Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.042 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'subject:Python': 0.06; 'operand': 0.09; 'subject:()': 0.09; 'python': 0.11; "wouldn't": 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'typeerror:': 0.16; 'wrote:': 0.18; 'thu,': 0.19; "aren't": 0.24; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; '"",': 0.31; '25,': 0.31; 'breaking': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'though.': 0.31; 'file': 0.32; '(most': 0.33; 'could': 0.34; 'received:google.com': 0.35; 'add': 0.35; 'version': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'future': 0.60; 'subject: & ': 0.68; 'jul': 0.74; 'sets,': 0.84; 'type(s)': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=s3xS7as04l8H/6wZl3PT8g0WO/dkJZeq/AcXrGp/amk=; b=bOaehYbxDu9wFgraVGv8jL4oBFxPKHlKUjK3BJ58fPTbkYpgs7q5vxOHceZYHiNRXi jo/PkthuoEeI17K8DG8frYBUxjVhMWqQsfOo7Tk9GImSPv9C4ecUc1zkgG9bPGTxilrg DNiKobCyzNFKKtppslfLdY9xY63gdbsb2ouQlXgeEu6v6js3byxOPv21Yf2B6J0SSbK0 wIlm+2o9VME517PKfj9hQ1LMwVXfYly69vtzWDiPYH6q+Wdqcu+oGT7NrOUS5rkgQuVY ++b3lMjVJAD8OzYz+GfwFUkG5Z7SiwR2QAfi+uKC+aCflZojvP/e953zwfINEfPua7ap JQww== MIME-Version: 1.0 X-Received: by 10.58.249.236 with SMTP id yx12mr16798146vec.25.1374732162514; Wed, 24 Jul 2013 23:02:42 -0700 (PDT) In-Reply-To: <51f0bc34$0$29971$c3e8da3$5496439d@news.astraweb.com> References: <51EF2AD8.3080105@stoneleaf.us> <51f0bc34$0$29971$c3e8da3$5496439d@news.astraweb.com> Date: Thu, 25 Jul 2013 16:02:42 +1000 Subject: Re: Python 3: dict & dict.keys() From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374732171 news.xs4all.nl 15865 [2001:888:2000:d::a6]:48456 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51193 On Thu, Jul 25, 2013 at 3:48 PM, Steven D'Aprano wrote: > Dicts aren't sets, and don't support set methods: > > py> d1 - d2 > Traceback (most recent call last): > File "", line 1, in > TypeError: unsupported operand type(s) for -: 'dict' and 'dict' I wouldn't take this as particularly significant, though. A future version of Python could add that support (and it might well be very useful), without breaking any of the effects of views. ChrisA