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


Groups > comp.lang.python > #63094

Re: Creating a list with holes

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 2014-01-04 12:24 +1100
Subject Re: Creating a list with holes
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4873.1388798694.18130.python-list@python.org> (permalink)

Show all headers | 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