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


Groups > comp.lang.python > #65581

Re: Question about `list.insert`

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.053
X-Spam-Evidence '*H*': 0.91; '*S*': 0.02; 'sysadmin': 0.05; 'subject:Question': 0.07; 'executes': 0.09; 'lost.': 0.09; 'sanity': 0.09; 'cc:addr:python-list': 0.11; 'language,': 0.12; 'windows': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'subject:`': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'have,': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'operations.': 0.31; 'figure': 0.32; 'fri,': 0.33; 'received:google.com': 0.35; 'there': 0.35; 'done': 0.36; 'list': 0.37; 'pm,': 0.38; 'does': 0.39; 'dave': 0.60; 'more': 0.64; 'lose': 0.68; 'promise': 0.68; 'smith': 0.68; 'behavior': 0.77; 'article': 0.77; 'printers.': 0.84; 'printouts': 0.84; 'angel': 0.91; 'why?': 0.91; 'to:none': 0.92; 'imagine': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=m8bZkT6vXZa3OaA096cjOzOofLmljsJHOtCjG3JlVJM=; b=hUgBgKnSu1z5L0NzPptpXJv47oNW+iv83RGBq9X6Ca3wiCecHsSyYhFdDSikw1+2o3 FhBeCsoX23BqQzhtG6nzmYk8rQGIaB5woaJOuZYOW7vQcyPk0VCVFq7vWiyZpc57MFub 3/HDXCRazg+ISV/9AFHNanD8ckdeaLWaoDK9NfIJE0rO72Sfy7h2dJeHRSywCK23bIYU SW8AhEY6xjkhkSn665xOGQyJ//AtYqmeHjV+bXNwxsBUkqVgUs0GQbIfrC29L6fBMAYy qKJKXFy+TM26lgvDSdv9CaW/JtHHdRfKwjYm1KWOQnuBKjlYFghUumC3DQWEaEvn+VqQ cZow==
MIME-Version 1.0
X-Received by 10.68.182.165 with SMTP id ef5mr7793310pbc.169.1391742883523; Thu, 06 Feb 2014 19:14:43 -0800 (PST)
In-Reply-To <roy-5342A1.22005606022014@news.panix.com>
References <4041bba7-91bc-4803-9150-2fcf14ecb5a9@googlegroups.com> <mailman.6471.1391741496.18130.python-list@python.org> <roy-5342A1.22005606022014@news.panix.com>
Date Fri, 7 Feb 2014 14:14:43 +1100
Subject Re: Question about `list.insert`
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
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.6473.1391742893.18130.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1391742893 news.xs4all.nl 2887 [2001:888:2000:d::a6]:39890
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:65581

Show key headers only | View raw


On Fri, Feb 7, 2014 at 2:00 PM, Roy Smith <roy@panix.com> wrote:
> In article <mailman.6471.1391741496.18130.python-list@python.org>,
>  Dave Angel <davea@davea.name> wrote:
>
>> list does not promise better than O(1) behavior
>
> I'm not aware of any list implementations, in any language, that
> promises better than O(1) behavior for any operations.  Perhaps there is
> O(j), where you just imagine the operation was performed?

I have a printer that executes in O(1/N) time, where N is the number
of marbles the sysadmin (me!) has lost. The less sanity I have, the
more printouts it produces. And the less printouts it produces, the
more marbles I lose trying to figure out WHY? WHY? WHY?!?

Okay, I'm done ranting about Windows and 1990s accounting packages and
modern PostScript printers.

ChrisA

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


Thread

Question about `list.insert` cool-RR <ram.rachum@gmail.com> - 2014-02-06 15:59 -0800
  Re: Question about `list.insert` Terry Reedy <tjreedy@udel.edu> - 2014-02-06 19:40 -0500
  Re: Question about `list.insert` MRAB <python@mrabarnett.plus.com> - 2014-02-07 00:42 +0000
  Re: Question about `list.insert` Terry Reedy <tjreedy@udel.edu> - 2014-02-06 21:48 -0500
  Re:Question about `list.insert` Dave Angel <davea@davea.name> - 2014-02-06 21:54 -0500
    Re: Question about `list.insert` Roy Smith <roy@panix.com> - 2014-02-06 22:00 -0500
      Re: Question about `list.insert` Rustom Mody <rustompmody@gmail.com> - 2014-02-06 19:08 -0800
      Re: Question about `list.insert` Tim Chase <python.list@tim.thechases.com> - 2014-02-06 21:11 -0600
        Re: Question about `list.insert` Roy Smith <roy@panix.com> - 2014-02-06 22:12 -0500
          Re: Question about `list.insert` Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-07 17:18 +1300
      Re: Question about `list.insert` Chris Angelico <rosuav@gmail.com> - 2014-02-07 14:14 +1100
      Re: Question about `list.insert` Chris Angelico <rosuav@gmail.com> - 2014-02-07 14:20 +1100
        Re: Question about `list.insert` Rustom Mody <rustompmody@gmail.com> - 2014-02-06 19:29 -0800
          Re: Question about `list.insert` Chris Angelico <rosuav@gmail.com> - 2014-02-07 14:45 +1100
      Re: Question about `list.insert` Asaf Las <roegltd@gmail.com> - 2014-02-06 19:28 -0800
  Re: Question about `list.insert` Dan Stromberg <drsalists@gmail.com> - 2014-02-06 20:52 -0800
    Re: Question about `list.insert` Asaf Las <roegltd@gmail.com> - 2014-02-06 21:18 -0800
  Re: Question about `list.insert` Peter Otten <__peter__@web.de> - 2014-02-07 09:25 +0100

csiph-web