commit | 6cef6d5d62f083ada715da3610ce12147b625ee2 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Sep 28 18:13:29 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Sep 28 18:13:29 2001 +0000 |
tree | de5a51234c4e4675698d20abc03bd09c1b1ee0fc | |
parent | 19405a4a2a68570cae67501935adea3f375f84bf [diff] |
Changes to copy() and deepcopy() in copy.py to support __reduce__ as a 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.