]> granicus.if.org Git - python/commit
Add support for copy_reg.dispatch_table.
authorGuido van Rossum <guido@python.org>
Fri, 7 Feb 2003 17:30:18 +0000 (17:30 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 7 Feb 2003 17:30:18 +0000 (17:30 +0000)
commitc06e3acc735a6e9cf28d0f511493bcfd8829117d
treeef2384f941d942527cef0f87e2307d28c42b4382
parent2731c5cf460778f02c5e713f6fff25cbbebedd37
Add support for copy_reg.dispatch_table.

Rewrote copy() and deepcopy() without avoidable try/except statements;
getattr(x, name, None) or dict.get() are much faster than try/except.
Lib/copy.py
Lib/test/test_copy.py