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


Groups > comp.lang.python > #73751

Re: Creating a dict-like class that counts successful and failed key matches

Date 2014-06-30 08:34 -0700
From Ethan Furman <ethan@stoneleaf.us>
Subject Re: Creating a dict-like class that counts successful and failed key matches
References <1404135829.10485.136092537.2F0486D2@webmail.messagingengine.com> <CAPTjJmpkz4DPyCYSPNoteUuuBOzySzhjHzYPEXUv4MFH1sYE1A@mail.gmail.com> <1404139465.27658.136120269.0CA38211@webmail.messagingengine.com>
Newsgroups comp.lang.python
Message-ID <mailman.11346.1404145915.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 06/30/2014 07:44 AM, python@bdurham.com wrote:
>
> Nice!!!
>
> I need to study your solution, but at first blush it looks exactly like
> what I wanted to implement.

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__.

--
~Ethan~

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Creating a dict-like class that counts successful and failed key matches Ethan Furman <ethan@stoneleaf.us> - 2014-06-30 08:34 -0700

csiph-web