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: 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: References: <4041bba7-91bc-4803-9150-2fcf14ecb5a9@googlegroups.com> Date: Fri, 7 Feb 2014 14:14:43 +1100 Subject: Re: Question about `list.insert` From: Chris Angelico Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Fri, Feb 7, 2014 at 2:00 PM, Roy Smith wrote: > In article , > Dave Angel 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