Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #73752
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@bdurham.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'if,': 0.09; 'methods,': 0.09; 'received:internal': 0.09; '(via': 0.16; 'dict': 0.16; 'from:addr:python': 0.16; 'general.': 0.16; 'magic': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'overridden': 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; 'subject: \n ': 0.16; 'subject:class': 0.16; 'subject:failed': 0.16; 'subject:key': 0.16; 'normally': 0.19; 'saying': 0.22; 'subject:like': 0.24; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'subject:that': 0.31; 'class': 0.32; 'implemented': 0.33; 'received:66': 0.35; 'something': 0.35; 'method': 0.36; 'example,': 0.37; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'from:no real name:2**0': 0.61; 'header:Message-Id:1': 0.63; 'provide': 0.64; 'more': 0.64; 'behavior': 0.77; 'ethan,': 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:subject:date:in-reply-to:references; s=mesmtp; bh= H7ayGLMocbt/iy3i3U3KpirEMQ4=; b=I2Aw8vA9Q5Zm8rKmJBz/ElknCI6qwQGG VcpzTGRfEqWp8V604hG05MssrvLU0lHXd6BQ818kgqaKylr0Cl4UFw7rmWHYExLO O57V6O8vVGGASdUxVoVRnaPj9d1vfz3zF8uR5a4m4uvcdzRBQPP4lmqFOhySiuyn 8ptMPYT85s4= |
| 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:subject:date:in-reply-to :references; s=smtpout; bh=H7ayGLMocbt/iy3i3U3KpirEMQ4=; b=aZuse LTcJP4KfTZXe/Y99SnS6f70JVtK6xWahohzG3ALQMx9wsByLCMWbKu5ZKpOv9IGj 18+xSEImGKdpBcqXe+4VCcEp98Yihmz9K9Re43nt83FcBbj6BU430+xYs5yeKXR7 cHWWXCbRfbHsXihY1jOGlbq19aOQYRYTwtcv2M= |
| X-Sasl-Enc | LtL7PG8RA7NXMfxdRFPJLqoIJG4pkpl52ZitAf4RBtcP 1404146834 |
| 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 |
| Subject | Re: Creating a dict-like class that counts successful and failed key matches |
| Date | Mon, 30 Jun 2014 12:47:14 -0400 |
| In-Reply-To | <53B18398.4090302@stoneleaf.us> |
| References | <1404135829.10485.136092537.2F0486D2@webmail.messagingengine.com> <CAPTjJmpkz4DPyCYSPNoteUuuBOzySzhjHzYPEXUv4MFH1sYE1A@mail.gmail.com> <1404139465.27658.136120269.0CA38211@webmail.messagingengine.com> <53B18398.4090302@stoneleaf.us> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.11347.1404146837.18130.python-list@python.org> (permalink) |
| Lines | 15 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1404146837 news.xs4all.nl 2900 [2001:888:2000:d::a6]:58375 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:73752 |
Show key headers only | View raw
Ethan, > Keep in mind that dict /will not/ call your overridden methods, so if, for example, you provide your own __getitem__ you will also need to provide your own copies of any dict method that calls __getitem__. I'm not sure I understand. Are you saying that Chris's __getitem__ will not be called by other dict methods that would normally call this magic method and instead call the parent's __getitem__ directly (via super() or something similar?)? Is this specific to the native Dict class (because its implemented in C vs. Python?) or is this behavior more general. Malcolm
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Creating a dict-like class that counts successful and failed key matches python@bdurham.com - 2014-06-30 12:47 -0400
csiph-web