Deeper copy than deepcopy

Scott Pakin scott+clp at
Wed Oct 28 17:31:51 CET 2009

Thanks everyone!  The list-comprehension approach should work in my case
as I know a priori that my data structure is finite.  Still, it'd be
awfully convenient for Python's copy module to offer a copy.deepercopy
function -- even if it comes with the caveat that it will explode if
given a data structure with backlinks.

-- Scott

More information about the Python-list mailing list