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


Groups > comp.lang.python > #63094

Re: Creating a list with holes

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 <rosuav@gmail.com>
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 <CACwCsY7D2r+NFeY6Ek44NMimrNtikbPNhp+FR6Fam-tMVHCK7Q@mail.gmail.com>
References <CACwCsY5P47-dB1NLQTUTQ=0aF6B+-M3y4hCxcUGmcVmHM8=-xQ@mail.gmail.com> <CAPTjJmp+NtGYWE3S3SGjo-xoYC74Exdpci_+x4AUNgqM5=CJNQ@mail.gmail.com> <CACwCsY6J0-v0EfKRj5XCCdL9ym6MxpGuXqu93DXLuhVOhuRVJw@mail.gmail.com> <CAPTjJmphBdTObUKQyk9nwSjN60zqUnHScYZ0OJA6Oym+2cDe_Q@mail.gmail.com> <CACwCsY7D2r+NFeY6Ek44NMimrNtikbPNhp+FR6Fam-tMVHCK7Q@mail.gmail.com>
Date Sat, 4 Jan 2014 12:24:45 +1100
Subject Re: Creating a list with holes
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.4873.1388798694.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sat, Jan 4, 2014 at 11:18 AM, Larry Martell <larry.martell@gmail.com> wrote:
> Your last suggestion is what I ended up doing, but I had to key off
> the <Values> </Values> unit - I couldn't use <Value> because that
> isn't present for ones that have no <Current> - 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

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


Thread

Re: Creating a list with holes Chris Angelico <rosuav@gmail.com> - 2014-01-04 12:24 +1100

csiph-web