• Guido van Rossum's avatar
    Changes to copy() and deepcopy() in copy.py to support __reduce__ as a · 6cef6d5d
    Guido van Rossum yazdı
    fallback for objects that are neither supported by our dispatch table
    nor have a __copy__ or __deepcopy__ method.
    
    Changes to _reduce() in copy_reg.py to support reducing objects that
    don't have a __dict__ -- copy.copy(complex()) now invokes _reduce().
    
    Add tests for copy.copy() and copy.deepcopy() to test_regrtest.py.
    6cef6d5d
copy_reg.py 1.67 KB