"Terry Reedy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Aside from the problem of not being able to delete the underlying object,
> the view object for a tuple would have to be a new type of object with a
> new set of methods.

It *could*, but it doesn't have to. One can represent a view as essentially an 
object with a pointer
to a memory buffer and a (start,stop,step) triple. Then a "real tuple" is just 
a "view" with the
triple being (0, len(sequence), 1).

George


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

Reply via email to