Mapping, with sequence as key, wildcard and subsequence matching

Ben Finney ben+python at benfinney.id.au
Thu Jul 16 03:11:38 EDT 2015


Zachary Ware <zachary.ware+pylist at gmail.com> writes:

> On Thu, Jul 16, 2015 at 1:31 AM, Ben Finney <ben+python at benfinney.id.au> wrote:
> > Fine by me. What is the mapping API that needs to be implemented though?
>
> Have a look at collections.MutableMapping.

Thank you, that's great! I hadn't realised the ‘collections’ module had
such comprehensive coverage of Python built-in type APIs.

Now to focus back on the “existing debugged implementation” part :-)

-- 
 \       “Nothing is so common as to imitate one's enemies, and to use |
  `\           their weapons.” —Voltaire, _Dictionnaire Philosophique_ |
_o__)                                                                  |
Ben Finney




More information about the Python-list mailing list