On Fri, Mar 11, 2022, 4:16 PM wfdc via Python-ideas <python-ideas@python.org>
wrote:

> > why haven't you used a list
> 2. I don't want to modify the original sequence.
>

There's a really easy solution for you that will even be more perfomant.

Use a list and DON'T modify the original!

This is ABSOLUTELY an XY-problem.... which fact was difficult to wrestle
out of you.

>>> stuff1 = [a, b, c, d]
>>> stuff2 = stuff1[:]
>>> stuff2[2] = e
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/LZAWS3HDMJOVWJYZW2OIKSFSB5D4VILY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to