Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26533
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ethan@stoneleaf.us> |
| 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; 'memory.': 0.05; 'desired.': 0.07; 'table.': 0.07; 'subject:question': 0.08; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:184.172': 0.09; 'received:gator410.hostgator.com': 0.09; 'sqlite': 0.09; 'surrounded': 0.09; '~ethan~': 0.09; 'aug': 0.13; 'resulting': 0.13; 'colons': 0.16; 'disk.': 0.16; 'in-memory': 0.16; 'pythonic': 0.16; 'stumbled': 0.16; 'subject:API': 0.16; 'thoughts?': 0.16; 'martin': 0.16; 'wrote:': 0.17; 'expanded': 0.17; 'implementing': 0.17; 'thu,': 0.17; 'memory': 0.18; 'feature': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'wondering': 0.26; 'appreciated.': 0.26; 'thanks!': 0.26; 'disk': 0.27; 'library.': 0.27; 'streaming': 0.27; 'record': 0.28; 'feature,': 0.29; 'class': 0.29; "i'm": 0.29; 'not.': 0.32; 'comments': 0.33; 'to:addr:python-list': 0.33; 'agree': 0.34; 'pm,': 0.35; 'table': 0.35; 'but': 0.36; 'method': 0.36; 'should': 0.36; 'subject:: ': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'where': 0.40; 'skip:" 10': 0.40; 'header:Received:5': 0.40; 'help': 0.40; 'your': 0.60; 'decision': 0.60; 'situation': 0.62; 'more': 0.63; 'making': 0.64; 'results': 0.65; 'received:67.18': 0.65; 'actually,': 0.84; 'furman': 0.84; 'to:name:python': 0.84; 'ethan': 0.91; 'received:gateway02.websitewelcome.com': 0.91 |
| Date | Sun, 05 Aug 2012 07:09:38 -0700 |
| From | Ethan Furman <ethan@stoneleaf.us> |
| User-Agent | Thunderbird 2.0.0.24 (Windows/20100228) |
| MIME-Version | 1.0 |
| To | Python <python-list@python.org> |
| Subject | Re: dbf.py API question |
| References | <501AA304.3090000@stoneleaf.us> <CAPz=1FSPc7cfxn+rbRWwo67SjOXV_DmOO=_R1tq2jLTkOXsntQ@mail.gmail.com> |
| In-Reply-To | <CAPz=1FSPc7cfxn+rbRWwo67SjOXV_DmOO=_R1tq2jLTkOXsntQ@mail.gmail.com> |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - gator410.hostgator.com |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - stoneleaf.us |
| X-BWhitelist | no |
| X-Source | |
| X-Source-Args | |
| X-Source-Dir | |
| X-Source-Sender | ([192.168.74.2]) [50.137.155.36]:3999 |
| X-Source-Auth | ethan+stoneleaf.us |
| X-Email-Count | 1 |
| X-Source-Cap | dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| 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.2961.1344176168.4697.python-list@python.org> (permalink) |
| Lines | 34 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1344176168 news.xs4all.nl 6851 [2001:888:2000:d::a6]:55378 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:26533 |
Show key headers only | View raw
Ole Martin Bjørndalen wrote: > On Thu, Aug 2, 2012 at 5:55 PM, Ethan Furman <ethan@stoneleaf.us> wrote: >> SQLite has a neat feature where if you give it a the file-name of ':memory:' >> the resulting table is in memory and not on disk. I thought it was a cool >> feature, but expanded it slightly: any name surrounded by colons results in >> an in-memory table. >> >> I'm looking at the same type of situation with indices, but now I'm >> wondering if the :name: method is not pythonic and I should use a flag >> (in_memory=True) when memory storage instead of disk storage is desired. >> >> Thoughts? > > I agree that the flag would be more pythonic in dbf.py. > > I was not aware that you are adding sqlite functionality to your > library. This is very cool! Actually, I'm not. I had stumbled across that one tidbit and thought it was cool, but cool is not always pythonic. ;) > I am considering adding a "streaming=True" flag which would make the > table class a record generator, You can do this by implementing either __getitem__ or __iter__, unless the streaming flag would also make your table not in memory. > I hope this can help you somehow in your decision making process. All comments appreciated. Thanks! ~Ethan~
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: dbf.py API question Ethan Furman <ethan@stoneleaf.us> - 2012-08-05 07:09 -0700
csiph-web