Subject: Re: bug#64960: Documentation for copy-sequence

From: Eli Zaretskii <[email-masked]>
Date: Mon, 31 Jul 2023 05:21:44 +0300

> Date: Sun, 30 Jul 2023 19:20:45 +0000
> From: uzibalqa <[email-masked]>
> Cc: [email-masked]
> 
> > As the doc string says: the elements are not copied. You get a new
> > sequence whose elements are shared with the original one.
> 
> So it returns a copy but elements are not copied.  So what happens exactly ?
> You get a reference to the original ?

Yes.

> When I modify the copy, the original remains intact.

No, if you modify an element of the copy, the corresponding element of
the original is also changed.  That's what "shared" means.