Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60963
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <cameron@cskk.homeip.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.016 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'irc': 0.05; 'steve': 0.09; 'imply': 0.09; '#python': 0.16; 'entries.': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'limit.': 0.16; 'limiting': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'op.': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:cskk.homeip.net': 0.16; 'received:homeip.net': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'wrote:': 0.18; 'solution.': 0.20; 'header:User-Agent:1': 0.23; 'entries': 0.24; 'planned': 0.24; 'subject:like': 0.24; 'cheers,': 0.24; 'question': 0.24; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'fixed': 0.29; 'posting': 0.31; 'quite': 0.32; 'subject:with': 0.35; 'knows': 0.35; 'received:com.au': 0.36; 'charset:us-ascii': 0.36; 'list': 0.37; 'project': 0.37; 'depends': 0.38; 'received:211': 0.38; 'to:addr:python-list': 0.38; 'channel': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'length': 0.61; 'took': 0.61; 'success': 0.61; 'content-disposition:inline': 0.62; 'making': 0.63; 'series': 0.66; 'limit': 0.70; 'carefully': 0.74; 'actually,': 0.84; 'batchelder': 0.84; 'mistakes.': 0.84; 'from.': 0.93; 'mistakes': 0.93 |
| Date | Wed, 4 Dec 2013 08:19:39 +1100 |
| From | Cameron Simpson <cs@zip.com.au> |
| To | python-list@python.org |
| Subject | Re: how to implement a queue-like container with sort function |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| In-Reply-To | <20131203211718.GA94804@cskk.homeip.net> |
| User-Agent | Mutt/1.5.21 (2010-09-15) |
| References | <20131203211718.GA94804@cskk.homeip.net> |
| X-Optus-CM-Score | 0 |
| X-Optus-CM-Analysis | v=2.1 cv=YYGEuWhf c=1 sm=1 tr=0 a=YuQlxtEQCowy2cfE5kc7TA==:117 a=YuQlxtEQCowy2cfE5kc7TA==:17 a=ZtCCktOnAAAA:8 a=PO7r1zJSAAAA:8 a=LcaDllckn3IA:10 a=eq1AAun0SscA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=8AHkEIZyAAAA:8 a=i8wGUEO_q4UA:10 a=W4ub2mWhAAAA:8 a=KzsXYlxZgpxpw8B0y2MA:9 a=zb7fYsLmSr85Wp1g:21 a=8ikd0-IIRF2MZIjH:21 a=CjuIK1q_8ugA:10 a=0xq-cdXUTwIA:10 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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.3530.1386105592.18130.python-list@python.org> (permalink) |
| Lines | 22 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1386105592 news.xs4all.nl 2959 [2001:888:2000:d::a6]:32946 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:60963 |
Show key headers only | View raw
On 04Dec2013 08:17, I wrote: > On 02Dec2013 07:26, Ned Batchelder <ned@nedbatchelder.com> wrote: > > Actually, I had a long conversation in the #python IRC channel with > > the OP at the same time he was posting the question here, and it > > turns out he knows exactly how many entries are going into the > > "queue", so a plain-old list is the best solution. I don't know > > quite where the idea of limiting the number of entries came from. > > For me, it was because he said "fill the queue" in the OP. I took > that to imply that the queue had a capacity limit. And then I check the source:-( He actually said "I want to a fixed length list-like container". That still sounds like a limit to the number of entries. Cheers, -- Cameron Simpson <cs@zip.com.au> Success in software development depends on making a carefully planned series of small mistakes in order to avoid making unplanned large mistakes. - Steve McConnell, _Software Project Survival Guide_
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: how to implement a queue-like container with sort function Cameron Simpson <cs@zip.com.au> - 2013-12-04 08:19 +1100
csiph-web