On 29/04/20 11:32 pm, Steven D'Aprano wrote:
My reasoning was that *eventually* for a big enough list, the cost of making the copy would outweigh the cost of moving the items. I don't know if my reasoning was valid or not,
I think it's not. They're both O(n) in the length of the list, so at most they will differ by a constant factor for large n. -- Greg _______________________________________________ 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/FYNTET632SAORICSJQP5E4VENH2XKRLZ/ Code of Conduct: http://python.org/psf/codeofconduct/