Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'guido': 0.05; 'url:pipermail': 0.05; 'purpose.': 0.07; 'referring': 0.07; 'pep': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'rossum': 0.09; 'jan': 0.12; "wouldn't": 0.14; '460': 0.16; 'dict': 0.16; 'reboot': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subclass': 0.16; 'subclassing': 0.16; 'subject:subclasses': 0.16; 'surprises': 0.16; 'wrote:': 0.18; 'slightly': 0.19; 'putting': 0.22; 'header :User-Agent:1': 0.23; 'header:X-Complaints-To:1': 0.27; 'van': 0.27; 'header:In-Reply-To:1': 0.27; 'words': 0.29; 'too.': 0.31; 'you?': 0.31; "d'aprano": 0.31; 'keys': 0.31; 'steven': 0.31; 'class': 0.32; 'option': 0.32; 'another': 0.32; 'url:python': 0.33; 'comment': 0.34; 'date:': 0.34; 'but': 0.35; 'add': 0.35; 'possible': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'received:173': 0.61; 're:': 0.63; 'believe': 0.68; '[python-dev]': 0.84; 'received:fios.verizon.net': 0.84; 'url:python-dev': 0.84; 'wanting': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Chanelling Guido - dict subclasses Date: Tue, 14 Jan 2014 22:48:09 -0500 References: <52d5e408$0$29970$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <52d5e408$0$29970$c3e8da3$5496439d@news.astraweb.com> 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: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1389757706 news.xs4all.nl 2868 [2001:888:2000:d::a6]:43864 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63961 On 1/14/2014 8:27 PM, Steven D'Aprano wrote: > In the midst of that discussion, Guido van Rossum made a comment about > subclassing dicts: > > [quote] > From: Guido van Rossum > Date: Tue, 14 Jan 2014 12:06:32 -0800 > Subject: Re: [Python-Dev] PEP 460 reboot > > Personally I wouldn't add any words suggesting or referring > to the option of creation another class for this purpose. You > wouldn't recommend subclassing dict for constraining the > types of keys or values, would you? > [end quote] > > https://mail.python.org/pipermail/python-dev/2014-January/131537.html > > This surprises me, I was slightly surprised too. I understand not wanting to add a subclass to stdlib, but I believe this was about adding words to the doc. Perhaps he did not want to over-emphasize one particular possible subclass by putting the words in the doc. -- Terry Jan Reedy