On Fri, Mar 11, 2022, 4:16 PM wfdc via Python-ideas <[email protected]> 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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/LZAWS3HDMJOVWJYZW2OIKSFSB5D4VILY/ Code of Conduct: http://python.org/psf/codeofconduct/
