[Python-ideas] Adding a `object.__deepcopy__`
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Sun Dec 20 15:04:25 CET 2009
2009/12/20 Ram Rachum <cool-rr at cool-rr.com>:
> Do you think there should be a `__deepcopy__` method for `object`?
No. Deep copy is an ill-defined concept. There is no universal notion
of a deep copy, various applications need different amount of copying.
Also, various applications need different amount of sharing and cycle
detection while copying. There is no universal solution which fits
Use a domain-specific function instead.
More information about the Python-ideas