Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'algorithm': 0.03; 'sep': 0.09; 'subject:using': 0.09; 'def': 0.10; 'sat,': 0.15; 'lambda': 0.16; 'wrote:': 0.17; 'subject:) ': 0.20; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'subject:list': 0.28; 'received:209.85.215.46': 0.30; 'you?': 0.32; 'subject:lists': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'but': 0.36; 'subject:with': 0.36; 'subject: (': 0.36; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'superior': 0.66; 'to:name:python': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=dfPJ5B+v5uTBwhZ1S8pNp5zciM+sONiTO8z6CTtHJas=; b=xPAupemWMo00NJReBVBejPUHOBeeEoCvRrfqSNcBNukW/mhLxx4bdY9RAl7AWOYYxn ufHLpc/ra8JzszWP++IzA5Ndg5u/Y4YydTN8F5YcBF43R2VPKqHVBkOW5VW158T8ejEP 7yzzspfX3zQ6Am4DKyJjoXxOEEJubnGZQ/cBANRoDOy3WPW9M1Oo9yW3tf6nSQVpHFtJ +ssh181zLY/iS3uiAzdlVoCJdz2IxcQwscnD4/DbO4b7DiVNZtpWhKHDWxbhKw2D2k1f dZiv2sshmSd52s1H0pjYZ17ybfHtyug94dcQAAtoNCFQJpVLyz2kuiPAslpCYlbF2Ft/ PBmw== MIME-Version: 1.0 In-Reply-To: References: <7x7grgtq75.fsf@ruckus.brouhaha.com> <4657ccef-b910-4781-9ea8-005b4e15f219@googlegroups.com> <98034dee-0108-4099-bbdd-82f90e96d383@googlegroups.com> From: Ian Kelly Date: Sat, 29 Sep 2012 11:18:48 -0600 Subject: Re: using "*" to make a list of lists with repeated (and independent) elements To: Python Content-Type: text/plain; charset=ISO-8859-1 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348939161 news.xs4all.nl 6918 [2001:888:2000:d::a6]:42443 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30515 On Sat, Sep 29, 2012 at 11:01 AM, 88888 Dihedral wrote: > > Don't you get it why I avoided the lambda one liner as a functon. > > I prefer the def way with a name chosen. Certainly, but the Bresenham line algorithm is O(n), which is why it is so superior to quicksort that is O(n log n). Of course you might try the Capo Ferro optimization, but I find that Thibault cancels out Capo Ferro, don't you?