On 02/17/2015 06:14 PM, candide wrote:
> Le mercredi 18 février 2015 01:50:16 UTC+1, Chris Angelico a écrit :
> 
>>
>> So, what's a container? It's a thing that you put other objects into.
> 
> 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, list, 
nor tuple actually have the contained
objects inside their memory space.  What they have is a record of what objects 
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~

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to