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


Groups > comp.lang.python > #93908

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

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.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '16,': 0.03; '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; ':-)': 0.12; 'thu,': 0.15; 'apis.': 0.16; 'debugged': 0.16; 'great!': 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; '2015': 0.20; 'am,': 0.23; 'implemented': 0.24; 'module': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'fine': 0.28; 'skip:_ 10': 0.32; 'common': 0.33; '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; 'subject:with': 0.40; 'back': 0.62; 'skip:\xe2 10': 0.70; 'jul': 0.72; '_o__)': 0.84; 'received:125': 0.84; 'ware': 0.91; '8bit%:18': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Mapping, with sequence as key, wildcard and subsequence matching
Date Thu, 16 Jul 2015 17:11:38 +1000
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>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host jigong.madmonks.org
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Cancel-Lock sha1:DARCbDnAgxpXD3FCQbmEzf9GgqE=
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.567.1437030905.3674.python-list@python.org> (permalink)
Lines 18
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1437030905 news.xs4all.nl 2821 [2001:888:2000:d::a6]:43183
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3717
X-Received-Body-CRC 1488685991
Path csiph.com!usenet.pasdenom.info!news.stben.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Xref csiph.com comp.lang.python:93908

Show key headers only | View raw


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.

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

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


Thread

Re: Mapping, with sequence as key, wildcard and subsequence matching Ben Finney <ben+python@benfinney.id.au> - 2015-07-16 17:11 +1000

csiph-web