Martin v. Löwis
ba8f5ff76c
Copy builtin functions as atomic. Fixes #746304 . Will backport to 2.2.
2003-06-14 07:10:06 +00:00
Guido van Rossum
99d2c251df
SF patch 707900, fixing bug 702858, by Steven Taschuk.
...
Copying a new-style class that had a reference to itself didn't work.
(The same thing worked fine for old-style classes.)
2003-06-13 19:28:47 +00:00
Neal Norwitz
e2fdc61004
Fix SF #749831 , copy raises SystemError when getstate raises exception
2003-06-08 13:19:58 +00:00
Walter Dörwald
21d3a32b99
Combine the functionality of test_support.run_unittest()
...
and test_support.run_classtests() into run_unittest()
and use it wherever possible.
Also don't use "from test.test_support import ...", but
"from test import test_support" in a few spots.
From SF patch #662807 .
2003-05-01 17:45:56 +00:00
Guido van Rossum
e690883ccf
Use __reduce_ex__ in copy.py. The test_*copy_cant() tests are simpler again.
2003-02-19 01:19:28 +00:00
Guido van Rossum
1dca482dbd
Somehow, copy() of a classic class object was handled
...
atomically, but deepcopy() didn't support this at all.
I don't see any reason for this, so I'm adding ClassType
to the set of types that are deep-copied atomically.
2003-02-07 17:53:23 +00:00
Guido van Rossum
c06e3acc73
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.
2003-02-07 17:30:18 +00:00
Guido van Rossum
85233bf746
Fix a bug in the way __getnewargs__ was handled.
2003-02-06 21:25:12 +00:00
Guido van Rossum
c755758906
Support all the new stuff supported by the new pickle code:
...
- subclasses of list or dict
- __reduce__ returning a 4-tuple or 5-tuple
- slots
2003-02-06 19:53:22 +00:00
Guido van Rossum
90e05b0e25
Support __reduce__ returning a 4-tuple or 5-tuple.
2003-02-06 18:18:23 +00:00
Guido van Rossum
581cb938d0
A test suite for the copy module. This should provide full code
...
coverage.
2003-02-06 17:52:15 +00:00