Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'from:addr:yahoo.co.uk': 0.05; 'api': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.10; 'thu,': 0.15; 'apis.': 0.16; 'great!': 0.16; 'inspiration': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Mapping': 0.16; 'subject:key': 0.16; 'wrote:': 0.16; 'language': 0.19; '>>>': 0.20; '2015': 0.20; 'lawrence': 0.22; 'am,': 0.23; 'implemented': 0.24; 'header:In-Reply-To:1': 0.24; 'module': 0.25; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'fine': 0.28; 'language.': 0.32; 'mapping': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'thank': 0.38; 'to:addr:python.org': 0.40; 'mark': 0.40; 'subject:with': 0.40; 'some': 0.40; 'our': 0.64; 'skip:\xe2 10': 0.70; 'jul': 0.72; 'url:search': 0.83; 'pythonistas,': 0.84; 'ware': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Mapping, with sequence as key, wildcard and subsequence matching Date: Thu, 16 Jul 2015 08:27:46 +0100 References: <85k2u0vpis.fsf@benfinney.id.au> <85bnfcve7w.fsf@benfinney.id.au> <85380ovcix.fsf@benfinney.id.au> <85pp3stw45.fsf@benfinney.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: host-92-22-86-251.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <85pp3stw45.fsf@benfinney.id.au> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437031807 news.xs4all.nl 2882 [2001:888:2000:d::a6]:49990 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:93911 On 16/07/2015 08:11, Ben Finney wrote: > Zachary Ware writes: > >> On Thu, Jul 16, 2015 at 1:31 AM, Ben Finney 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