Mapping, with sequence as key, wildcard and subsequence matching

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Jul 16 09:27:46 CEST 2015


On 16/07/2015 08:11, Ben Finney wrote:
> 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.
>

You might get some inspiration from 
http://nullege.com/codes/search/collections.MutableMapping

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Python-list mailing list