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

python at bdurham.com python at bdurham.com
Mon Jun 30 15:48:20 EDT 2014


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



More information about the Python-list mailing list