Path: csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1a.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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; '~ethan~': 0.09; 'filename:fname piece:signature': 0.16; 'objects.': 0.16; 'tuple': 0.16; '\xe9crit': 0.16; 'wrote:': 0.18; 'memory': 0.22; 'header:User- Agent:1': 0.23; 'exists': 0.24; 'space.': 0.24; 'header:In-Reply- To:1': 0.27; 'record': 0.27; 'point': 0.28; 'chris': 0.29; 'getting': 0.31; 'subject:the': 0.34; 'agree': 0.35; 'definition': 0.35; 'objects': 0.35; 'so,': 0.37; 'level': 0.37; 'to:addr :python-list': 0.38; 'list,': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'received:173': 0.61; 'here': 0.66; '2015': 0.84; 'dict,': 0.84; 'approach.': 0.91 Date: Wed, 18 Feb 2015 11:43:52 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: What the Pythons docs means by "container" ? References: <71e8463f-2a60-4fb0-a5b7-0ca7cd3efece@googlegroups.com> <472c49ae-c2ce-4eda-b922-f16613722e31@googlegroups.com> <1d87da9c-ef64-4bd2-9179-e2aad908a9d0@googlegroups.com> In-Reply-To: <1d87da9c-ef64-4bd2-9179-e2aad908a9d0@googlegroups.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lW30fNanewdT1fE2e8brC8wSgmvf2aeCp" 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: 53 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1424288640 news.xs4all.nl 2906 [2001:888:2000:d::a6]:32931 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:85812 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --lW30fNanewdT1fE2e8brC8wSgmvf2aeCp Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 02/17/2015 06:14 PM, candide wrote: > Le mercredi 18 f=E9vrier 2015 01:50:16 UTC+1, Chris Angelico a =E9crit = : >=20 >> >> So, what's a container? It's a thing that you put other objects into. >=20 > I agree with this approach. The important point to consider here is the= last word in your definition : "into". You are getting bogged down with implementation details; not even dict, l= ist, nor tuple actually have the contained objects inside their memory space. What they have is a record of what ob= jects they "contain", and methods to work with those objects. Whether a "contained" object exists before it is accessed is irrelevant, = is an implementation detail, and is a level of optimization. -- ~Ethan~ --lW30fNanewdT1fE2e8brC8wSgmvf2aeCp Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJU5Ot7AAoJENZ7D1rrH75NuxYQAJoQ71tSU8Nsa4nU10Wr4/GV akDO2fLdRmB3KoWC5uRRX+SFCgQBFPUgFZiT82/y/f/nePFYIVd2oaVofwMI5Cqe sjMWFBems7XVIBZMDXX6eLgJ3fIQ9UUCPFhaIS4u5qDEoySeNH2ZL/Tj9Qa5+vfg 5BmIx5oPYkozuRNz7qCbMrdgRHmIhxtVDiDr52P2MCwU3r2Vwoe2v1Z9HvG14yCb rfBSdo9g7btZXr7mCMNUxwpw6/4oVMEgPYn7/1Ae9vYwnl4nMnwXhT03Ot/ANMD+ bWwS/kT7BhqXvBtwWBL0XiTI9T5D6Wlpe+PklmP68ELXP9aKNoySASH0gvZmWxPC f/0Nd91l3DTk/eDmIShKlliogQ4hdveB87MoAybFAGM2HT7M3CX5qJ3sEcqs8r2h IfRerMnbA7uySWAPQCxd0VGbU6V9SRkHpsrAbkgtTMCDquHFfk+R8QNimZFEP9W8 T8cErHrLAhUaZ4ZbRMHR4IUNWfqJqSa+Pmc0VKGjgjK9pvUsF3XshZjVjiPYd/xo 8MMQ+tD4slVo99aJD8etqIBLZ3a6/KqwIo1ymmrfzepFKBt0TmL0DOVgBBAyD/1+ DgpTm5+WjjEFQEZExViPpkyFBFJMwX0Zk7LVPxZmrZq6bhClOqwyk78ZmoivbwK6 RXAb0LxO0xxgaWf4UeQL =dBSx -----END PGP SIGNATURE----- --lW30fNanewdT1fE2e8brC8wSgmvf2aeCp--