In article <[EMAIL PROTECTED]>, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >Nonsense. What is stored in the list is an object. Python doesn't have >pointers. You are confusing the underlying C implementation, which >implements lists as an array of pointers, with the high-level Python >code, which doesn't even know what a pointer is. It only has objects.
Wrong. Python has objects and targets. Names are a subset of targets. A target is anything that can contain a binding (or reference, whichever term you prefer) to an object; lists are arrays of targets. No matter how you slice it ;-), a list does not actually hold objects, it only holds references to objects. -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that doesn't affect the way you think about programming, is not worth knowing." --Alan Perlis -- http://mail.python.org/mailman/listinfo/python-list