Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.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.082 X-Spam-Evidence: '*H*': 0.84; '*S*': 0.00; 'sure,': 0.09; 'cc:addr :python-list': 0.11; 'jan': 0.12; 'doing,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'larry': 0.31; 'subject:with': 0.35; 'problem.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'data,': 0.36; 'thanks': 0.36; 'unit': 0.37; 'turn': 0.37; "couldn't": 0.39; 'how': 0.40; 'such': 0.63; 'different': 0.65; 'all!': 0.84; 'good!': 0.84; 'messed': 0.84; 'to:none': 0.92 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=9UgKIq0yVbz6syFd5sE5e2zj1otxsUPhV1Ggem/a6X4=; b=sDwceooUeHcWt61006YXuSNPSavYy94i6kYx6Gm618aD9qiONIzfZc0l/9Cqg149qt KKS3dsAkt8uduyDXPUHhMmt76mYbCHwU208Ogr3Q+p7rK1FkaMhO2aGdcI9Sjxkbde2i ZDgfFnEJWubsyf+ZDiz0KHKcHGzhxJyzdtginfemyZOMSkc0MkzmnDrT4EnIW71bjd2s p7E1qzQ2tB1r3eWGM6VPkuEiWaPXhmgQD5JMWVqS0l7GAfJWM9CN6RwFtBUkBKjrxnNe oLkTiFwXH2WY4YDBvg5dsQPLG+bFijJuBESn+664Ktxu0PA1aA4Jjr/qZtcMaZyJH2/s 8P6Q== MIME-Version: 1.0 X-Received: by 10.68.131.42 with SMTP id oj10mr66179316pbb.1.1388798685318; Fri, 03 Jan 2014 17:24:45 -0800 (PST) In-Reply-To: References: Date: Sat, 4 Jan 2014 12:24:45 +1100 Subject: Re: Creating a list with holes 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1388798694 news.xs4all.nl 2927 [2001:888:2000:d::a6]:37377 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:63094 On Sat, Jan 4, 2014 at 11:18 AM, Larry Martell wrote: > Your last suggestion is what I ended up doing, but I had to key off > the unit - I couldn't use because that > isn't present for ones that have no - that messed me up for > hours. But it's working now. Thanks all! Sure, you know your data better than I do after a quick glance. Sounds good! Such a classic problem. "I have this data, I need that structure. How can I turn the one into the other?" So many different answers. ChrisA