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


Groups > comp.lang.python > #108071

Re: Need help understanding list structure

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Need help understanding list structure
Date Tue, 3 May 2016 23:47:18 +1000
Lines 19
Message-ID <mailman.346.1462283241.32212.python-list@python.org> (permalink)
References <d6b0c524-f020-4726-b91a-517b2e8024ea@googlegroups.com> <5727CB31.5060309@lucidity.plus.com> <mailman.329.1462225716.32212.python-list@python.org> <ab5d3884-77ed-45d4-86ab-0333bf67dca1@googlegroups.com> <85mvo8gh57.fsf@benfinney.id.au> <mailman.332.1462232638.32212.python-list@python.org> <b93a85c8-042a-4c1f-800e-68a02dac3b78@googlegroups.com> <CAPTjJmoRxJSqAJNmWvxz9oNi294s=weAtM7yXC86OMYqq4jtjA@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de cLoMPN4RudzXbNUUkzKaKA8LCCodvVwSluoj4uUgAbZQ==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; 'subject:help': 0.07; 'cc:addr:python-list': 0.09; 'objects.': 0.09; 'pointers': 0.09; 'python': 0.10; 'python.': 0.11; '2016': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'matters,': 0.16; 'objects;': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'basically': 0.18; 'tells': 0.18; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'object.': 0.22; 'references': 0.23; 'header:In-Reply-To:1': 0.24; 'subject:list': 0.26; 'figure': 0.27; 'message-id:@mail.gmail.com': 0.27; 'pieces': 0.27; 'quoting': 0.29; 'searches': 0.29; 'subject:skip:u 10': 0.29; '[1]': 0.32; 'point': 0.33; 'tue,': 0.34; 'that,': 0.34; 'list': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'nothing.': 0.35; "isn't": 0.35; 'but': 0.36; 'list,': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'thanks': 0.37; 'beyond': 0.37; 'received:209': 0.38; 'anything': 0.38; 'someone': 0.38; 'data': 0.39; "you'll": 0.61; 'address': 0.61; 'skip:u 10': 0.61; 'default': 0.61; 'subject:Need': 0.61; 'within': 0.64; 'books.': 0.84; 'chrisa': 0.84; 'replies.': 0.84; 'to:none': 0.91; 'luck': 0.95
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; bh=w5eFl/Jr2G/kWQb9M0XIOptqaDDvU6nrWZttVF8j7nI=; b=J4TJcbcMsGpXnvcdFAoraXay7TcZb8ARgt+k04QWoXstXKDGtduaG8KQnP1JTFJ4dY XdlDorqsC+trqPCALvCyJRSJpaylSf0y3e3n1K+Rn36lXHChjWUgg726lVfZOjNPPMm6 M0nf3WMbkaa9Z4tBnXlj1g114vAqIU5paOe7uXXSqrpmzTm8SbVyQDDVbKIAERN+LnBV WHiFD0WwRKfN6Si4uO59ngpzUMv/Xt++YBPF2IPRubUZP8ZVftI/DE0ZgW0Uwj+l2/uA SKmZwfAyO+0QumOmKadk0XR8xGIrq7nGk8+kHPv/rD7DRyaA1KK0J/UVhuen2fCp/Izl wD0Q==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=w5eFl/Jr2G/kWQb9M0XIOptqaDDvU6nrWZttVF8j7nI=; b=PUjN8V6Se20HtPBE//MPKqZ8Qu6cWgVzVQbb0nvMLJHxP2Hf16XXoyHjl34UxgIOmY i3GYh9+kvZW4w5xwMrnO+Rhk44bL0eUNp4loTM6QjTPvDRUtMDrbLQM7gCeN6gpayTwO m5X+qE8m8GWZijcmymJJX4B9qgifjgCBIMKGAc4cQdXXQrWQB8+6pNXPQSBjj6xRFaS5 FhiZIzOgHZGETWj7fXr9tMXOrj7tLtFB3EEn7cPfvFMGu7Ya+UnHKcxnPBn2lAR6PYNO NTwrnkwcqaVqMXaVywEF+VxkI5+KZQTHcTCmgd0LYbPGMNuaiqAbnXgzrVzG0Y06Q7Qc lhJg==
X-Gm-Message-State AOPr4FUtRzm0Cym07hBTOEOMBi9crCD9wNGOGUW8V+nLE44yNHHUUrMTrGPagKYr+wwwm3CW2mFNIBtVX+1CLg==
X-Received by 10.107.137.166 with SMTP id t38mr3429559ioi.31.1462283238595; Tue, 03 May 2016 06:47:18 -0700 (PDT)
In-Reply-To <b93a85c8-042a-4c1f-800e-68a02dac3b78@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
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>
X-Mailman-Original-Message-ID <CAPTjJmoRxJSqAJNmWvxz9oNi294s=weAtM7yXC86OMYqq4jtjA@mail.gmail.com>
X-Mailman-Original-References <d6b0c524-f020-4726-b91a-517b2e8024ea@googlegroups.com> <5727CB31.5060309@lucidity.plus.com> <mailman.329.1462225716.32212.python-list@python.org> <ab5d3884-77ed-45d4-86ab-0333bf67dca1@googlegroups.com> <85mvo8gh57.fsf@benfinney.id.au> <mailman.332.1462232638.32212.python-list@python.org> <b93a85c8-042a-4c1f-800e-68a02dac3b78@googlegroups.com>
Xref csiph.com comp.lang.python:108071

Show key headers only | View raw


On Tue, May 3, 2016 at 11:21 PM,  <moa47401@gmail.com> wrote:
> Thanks for the replies. I definitely need a better understanding of "<CLASS object at ADDRESS>" when using Python objects. So far no luck with web searches or my Python books. Could someone point (no pun intended) me to a good resource?
>
> Not that it matters, but the reason I got off track is there are pointers within my data that point to other pieces of the data and have nothing to do with Python.

What you're seeing there is the default object representation. It
isn't actually quoting an address but an "identity number". The only
meaning of that number is that it's unique [1]; so if you see the same
number come up twice in the list, you can be confident that the list
has two references to the same object.

Beyond that, it basically tells you nothing. So you know what kind of
object it is, but anything else you'll have to figure out for
yourself.

ChrisA

[1] Among concurrently-existing objects; if an object disappears, its
ID can be reused.

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


Thread

Need help understanding list structure moa47401@gmail.com - 2016-05-02 14:30 -0700
  Re: Need help understanding list structure Erik <python@lucidity.plus.com> - 2016-05-02 22:48 +0100
    Re: Need help understanding list structure moa47401@gmail.com - 2016-05-02 15:33 -0700
      Re: Need help understanding list structure Michael Torrie <torriem@gmail.com> - 2016-05-02 17:25 -0600
      Re: Need help understanding list structure Ben Finney <ben+python@benfinney.id.au> - 2016-05-03 09:43 +1000
        Re: Need help understanding list structure moa47401@gmail.com - 2016-05-03 06:21 -0700
          Re: Need help understanding list structure Chris Angelico <rosuav@gmail.com> - 2016-05-03 23:47 +1000
            Re: Need help understanding list structure moa47401@gmail.com - 2016-05-03 09:01 -0700
              RE: Need help understanding list structure Dan Strohl <D.Strohl@F5.com> - 2016-05-03 16:52 +0000
                Re: Need help understanding list structure moa47401@gmail.com - 2016-05-03 10:31 -0700
                RE: Need help understanding list structure Dan Strohl <D.Strohl@F5.com> - 2016-05-03 17:54 +0000
                Use __repr__ to show the programmer's representation (was: Need help understanding list structure) Ben Finney <ben+python@benfinney.id.au> - 2016-05-04 04:14 +1000
                RE: Use __repr__ to show the programmer's representation (was: Need help understanding list structure) Dan Strohl <D.Strohl@F5.com> - 2016-05-03 18:35 +0000
                Re: Use __repr__ to show the programmer's representation (was: Need help understanding list structure) moa47401@gmail.com - 2016-05-03 12:24 -0700
                Re: Use __repr__ to show the programmer's representation (was: Need help understanding list structure) Random832 <random832@fastmail.com> - 2016-05-03 15:37 -0400
                Re: Need help understanding list structure MRAB <python@mrabarnett.plus.com> - 2016-05-03 20:57 +0100
                Re: Use __repr__ to show the programmer's representation (was: Need help understanding list structure) Chris Angelico <rosuav@gmail.com> - 2016-05-04 09:40 +1000

csiph-web