Tim Peters
88869f9787
Whitespace normalization.
2001-01-14 23:36:06 +00:00
Guido van Rossum
f8baad0f17
Patch by Finn Bock to support PyStringMap in Jython.
2000-11-27 21:53:14 +00:00
Marc-André Lemburg
f156a44e8c
Added Unicode objects to the copy mechanism. Since these are immutable,
...
they are copied as atomic types.
2000-09-07 11:00:03 +00:00
Fred Drake
227b120468
Convert some old-style string exceptions to class exceptions.
2000-08-17 05:06:49 +00:00
Guido van Rossum
4b8c6eaf8b
Actually, the previous batch's comment should have been different;
...
*this* set of patches is Ka-Ping's final sweep:
The attached patches update the standard library so that all modules
have docstrings beginning with one-line summaries.
A new docstring was added to formatter. The docstring for os.py
was updated to mention nt, os2, ce in addition to posix, dos, mac.
2000-02-04 15:39:30 +00:00
Guido van Rossum
2fff84d892
Don't die if CodeType doesn't exist -- ignore the error. This could
...
happen in restricted mode.
1999-01-25 21:37:02 +00:00
Guido van Rossum
8ca842066c
A few lines were indented using spaces instead of tabs -- fix them.
1998-03-26 20:56:10 +00:00
Guido van Rossum
677fc843ea
As Mike Fletcher pointed out, a __deepcopy__() method should be called
...
with the memo as an argument.
1998-03-13 20:12:17 +00:00
Guido van Rossum
c5d2d51700
Apply the same change to classes without an __getinitargs__() method
...
as in pickle: the new instance is created without calling __init__().
1997-12-07 16:18:22 +00:00
Guido van Rossum
e6eef4b4a3
Use __dict__.update(state) instead of for loop over state.items() and
...
call to setattr(). This changes semantics, following the change
already implemented in pickle.
Also reindented a few lines properly.
1997-10-26 17:00:25 +00:00
Guido van Rossum
abfdd70665
Add XXX note about wanting support for copy_reg.py...
1997-10-07 14:47:50 +00:00
Guido van Rossum
558be283bf
Make sure the objects returned by __getinitargs__() are kept alive (in
...
the memo) to avoid a certain kind of nasty crash. (Not easily
reproducable because it requires a later call to __getinitargs__() to
return a tuple that happens to be allocated at the same address.)
1997-08-20 22:26:19 +00:00
Guido van Rossum
f7cea10f80
Remove '(' in column 0 of doc strings.
...
Add dependency on dict.copy().
1997-05-28 19:31:14 +00:00
Guido van Rossum
6afff6139a
Memoize _deepcopy_tuple() -- maybe this helps Tommy's problem.
1996-06-17 17:10:11 +00:00
Guido van Rossum
fefbbe5085
fix bogus hasttr usage
1995-03-22 10:10:31 +00:00
Guido van Rossum
55d2f3997e
rename copy.Error to copy.error
1995-03-14 17:41:36 +00:00
Guido van Rossum
cc6764c1ba
added __doc__ strings etc.
1995-02-09 17:18:10 +00:00
Guido van Rossum
409780f8f2
shallow and deep copy operations
1995-01-10 00:34:21 +00:00