Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed1a.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.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:internal': 0.09; 'solution,': 0.09; 'chris,': 0.16; 'from:addr:python': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'subclass': 0.16; 'subject: \n ': 0.16; 'subject:class': 0.16; 'subject:failed': 0.16; 'subject:key': 0.16; 'subject:like': 0.24; 'looks': 0.24; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'then.': 0.30; 'subject:that': 0.31; 'received:66': 0.35; 'something': 0.35; 'but': 0.35; 'received:10': 0.37; 'thank': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.61; 'first': 0.61; 'header:Message-Id:1': 0.63; 'study': 0.69; 'dict,': 0.84 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=bdurham.com; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= iv2xL2kC0j+fhlUd5vinco0bVS4=; b=NhaxxKkQjvtT5RYU2uE6+UCXYoNXZPew tpMFyi16X0OJFjv85F3tV32cGl5/BrP6NcNfM08nK6mu3Bvrqy1uZFwPVIVsOtPb nVk3B7cScFhfLjg5AfHkbF1FK3AIuXHHu/Yw3eZYHdt31rMHx843CueaotKBi115 MdENFgOJhKw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=iv2xL2kC0j+fhlUd5vinco0bVS4=; b=t/2 YVDWNk6p3Pio8Tt1bkr1P1cFahbNlb9CkvPbMSRQRwcemqybg3XlVfJDXbL+UhxD gYgyCxSaZgo9CAadiXDpW/BN8U4YQ8GNpA/Fz5htHnENjd+j3W+pTrbcOgiMQQY9 S9byeddXbxP7hQ9VQTpcm3VYNFdgkO74haIuGLtM= X-Sasl-Enc: R0G62BKtbevYVqNIeCtyWcX8DID1gCJ6NM1+21fNNbx6 1404139465 From: python@bdurham.com To: python-list@python.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-988f1f18 In-Reply-To: References: <1404135829.10485.136092537.2F0486D2@webmail.messagingengine.com> Subject: Re: Creating a dict-like class that counts successful and failed key matches Date: Mon, 30 Jun 2014 10:44:25 -0400 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1404139471 news.xs4all.nl 2858 [2001:888:2000:d::a6]:46829 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:73750 Hi Chris, > Sounds like you want to subclass dict, then. Something like this: Nice!!! I need to study your solution, but at first blush it looks exactly like what I wanted to implement. Thank you! Malcolm