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

Ethan Furman ethan at stoneleaf.us
Mon Jun 30 11:34:48 EDT 2014


On 06/30/2014 07:44 AM, python at 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~



More information about the Python-list mailing list