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


Groups > comp.lang.python > #93911

Re: Mapping, with sequence as key, wildcard and subsequence matching

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 <python-python-list@m.gmane.org>
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 <breamoreboy@yahoo.co.uk>
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> <mo7fco$tme$1@ger.gmane.org> <85bnfcve7w.fsf@benfinney.id.au> <CAPTjJmrNVFcT5O9H3EtiSa1rthjkLP2+hdVcRciTr9gmnmD7LA@mail.gmail.com> <85380ovcix.fsf@benfinney.id.au> <CAKJDb-PhFV48MDYjsn4Gf7REY8vkkcTb_9_fKQ0zDnSY6a0_dw@mail.gmail.com> <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.570.1437031807.3674.python-list@python.org> (permalink)
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

Show key headers only | View raw


On 16/07/2015 08:11, Ben Finney wrote:
> Zachary Ware <zachary.ware+pylist@gmail.com> writes:
>
>> On Thu, Jul 16, 2015 at 1:31 AM, Ben Finney <ben+python@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Mapping, with sequence as key, wildcard and subsequence matching Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-07-16 08:27 +0100

csiph-web