Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24991
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python@mrabarnett.plus.com> |
| 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; 'subject:question': 0.08; 'advice.': 0.09; 'dict': 0.09; 'subject:design': 0.09; 'tuple': 0.09; 'looked': 0.10; ';-)': 0.11; 'index': 0.13; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'help?': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'record?': 0.16; 'subject:API': 0.16; 'tuple,': 0.16; 'wrote:': 0.17; 'module': 0.19; 'matching': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'values': 0.26; 'index,': 0.29; 'received:192.168.1.3': 0.29; 'table,': 0.29; 'skip:_ 10': 0.29; "i'm": 0.29; 'filled': 0.30; 'basic': 0.30; 'received:84': 0.32; 'values.': 0.33; 'to:addr :python-list': 0.33; 'equal': 0.33; 'another': 0.33; 'there': 0.35; 'really': 0.36; 'compare': 0.36; 'method': 0.36; 'should': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'list,': 0.39; 'received:192.168': 0.40; 'free': 0.61; 'fun': 0.64; 'header :Reply-To:1': 0.68; 'reply-to:no real name:2**0': 0.72; 'furman': 0.84; 'reply-to:addr:python.org': 0.84; 'ethan': 0.91 |
| X-CM-Score | 0.00 |
| X-CNFS-Analysis | v=2.0 cv=HL5B5/Rv c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=YsUzL_8ObRgA:10 a=wIbGyEwG0DUA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=x5xw6saFBTNc027GxQsA:9 a=wPNLvfGTeEIA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 |
| X-AUTH | mrabarnett:2500 |
| Date | Fri, 06 Jul 2012 23:26:09 +0100 |
| From | MRAB <python@mrabarnett.plus.com> |
| User-Agent | Mozilla/5.0 (Windows NT 5.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: API design question for dbf.py |
| References | <4FF759CA.9060803@stoneleaf.us> |
| In-Reply-To | <4FF759CA.9060803@stoneleaf.us> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| Reply-To | python-list@python.org |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1876.1341613574.4697.python-list@python.org> (permalink) |
| Lines | 15 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1341613574 news.xs4all.nl 6896 [2001:888:2000:d::a6]:40308 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:24991 |
Show key headers only | View raw
On 06/07/2012 22:34, Ethan Furman wrote: > I'm looking for some free advice. ;) > > My dbf module has three basic containers, all of which support list-like > access: Table, List, and Index, each of which is filled with _DbfRecords. > > The fun part is that a _DbfRecord can compare equal to another > _DbfRecord, a _DbfRecordTemplate, a tuple with the same values in the > same locations, or a dict with the same keys/fields and values. > > The really fun part is __contains__: should the __contains__ method > return True when a _DbfRecordTemplate, tuple, or dict is looked up in > the Table, List, or Index and there is a matching record? > Well, if x is in c and x == y, then y is in c. Does that help? ;-)
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: API design question for dbf.py MRAB <python@mrabarnett.plus.com> - 2012-07-06 23:26 +0100
csiph-web