Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #60964
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.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.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'irc': 0.05; 'imply': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '#python': 0.16; 'entries.': 0.16; 'limit.': 0.16; 'limiting': 0.16; 'op.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'simpson': 0.16; 'wrote:': 0.18; 'solution.': 0.20; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'entries': 0.24; 'sorry,': 0.24; 'subject:like': 0.24; 'cheers,': 0.24; 'question': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'fixed': 0.29; 'said,': 0.30; 'posting': 0.31; 'quite': 0.32; '"the': 0.34; 'subject:with': 0.35; 'knows': 0.35; 'but': 0.35; 'should': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'channel': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'length': 0.61; 'took': 0.61; 'limit': 0.70; 'actually,': 0.84; 'batchelder': 0.84; 'from.': 0.93 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Ned Batchelder <ned@nedbatchelder.com> |
| Subject | Re: how to implement a queue-like container with sort function |
| Date | Tue, 03 Dec 2013 16:34:02 -0500 |
| References | <20131203211718.GA94804@cskk.homeip.net> <20131203211939.GA96916@cskk.homeip.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | 18.189.126.187 |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 |
| In-Reply-To | <20131203211939.GA96916@cskk.homeip.net> |
| 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.3531.1386106458.18130.python-list@python.org> (permalink) |
| Lines | 25 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1386106458 news.xs4all.nl 2972 [2001:888:2000:d::a6]:35979 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:60964 |
Show key headers only | View raw
On 12/3/13 4:19 PM, Cameron Simpson wrote: > 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, > Sorry, I was unclear. When I said, "I don't know where the idea came from," I should have said, "the OP said he wanted a fixed-length contained, but I don't know why he thinks that." --Ned.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: how to implement a queue-like container with sort function Ned Batchelder <ned@nedbatchelder.com> - 2013-12-03 16:34 -0500
csiph-web