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


Groups > comp.lang.python > #73760

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

From python@bdurham.com
References (1 earlier) <CAPTjJmpkz4DPyCYSPNoteUuuBOzySzhjHzYPEXUv4MFH1sYE1A@mail.gmail.com> <1404139465.27658.136120269.0CA38211@webmail.messagingengine.com> <53B18398.4090302@stoneleaf.us> <1404146834.28955.136173757.51576D44@webmail.messagingengine.com> <53B199C0.9040600@stoneleaf.us>
Subject Re: Creating a dict-like class that counts successful and failed key matches
Date 2014-06-30 15:48 -0400
Newsgroups comp.lang.python
Message-ID <mailman.11350.1404157703.18130.python-list@python.org> (permalink)

Show all headers | View raw


Ethan,

>> Is this specific to the native Dict class (because its implemented in C vs. Python?) or is this behavior more general.

> I /think/ it's only dict, but I haven't played with subclassing lists, tuples, etc.  It's not a C vs Python issue, but a 
'implemented with __private methods' issue.  From what I have seen so
far in the confusion and frustration that decision 
has caused, I do not think it was a good one.  :(

Thanks for the heads-up!

Malcolm

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 python@bdurham.com - 2014-06-30 15:48 -0400

csiph-web