Serhiy Storchaka
2329eeda0c
Issue #25718 : Fixed copying object with state with boolean value is false.
2015-11-30 17:20:02 +02:00
Antoine Pitrou
dca9de97b4
Merged revisions 84495-84496 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r84495 | antoine.pitrou | 2010-09-04 19:40:21 +0200 (sam., 04 sept. 2010) | 4 lines
Issue #1100562 : Fix deep-copying of objects derived from the list and dict types.
Patch by Michele Orrù and Björn Lindqvist.
........
r84496 | antoine.pitrou | 2010-09-04 19:40:51 +0200 (sam., 04 sept. 2010) | 3 lines
Fix Björn's name in ACKS.
........
2010-09-04 17:52:26 +00:00
Antoine Pitrou
d16f57bf4d
Issue #1515 : Enable use of deepcopy() with instance methods. Patch by Robert Collins.
2009-11-28 15:55:58 +00:00
Antoine Pitrou
775fd66d7b
Issue #2116 : Weak references and weak dictionaries now support copy()ing and deepcopy()ing.
2009-05-15 16:54:52 +00:00
Brett Cannon
2ee0e8eaec
Revert the renaming of repr to reprlib.
2008-05-23 05:03:59 +00:00
Georg Brandl
dffbf5f542
Revert copy_reg -> copyreg rename.
2008-05-20 07:49:57 +00:00
Alexandre Vassalotti
50a1acb2ab
Changed references to the reprlib module to use its new name.
2008-05-16 06:58:49 +00:00
Alexandre Vassalotti
9510e4a9f8
Added module stub for copy_reg renaming in 3.0.
...
Renamed copy_reg to copyreg in the standard library, to avoid
spurious warnings and ease later merging to py3k branch. Public
documentation remains intact.
2008-05-11 08:25:28 +00:00
Raymond Hettinger
b72233ce63
Issue 2460: Make Ellipsis objects copyable.
2008-03-24 08:17:39 +00:00
Tim Peters
d6e7e73ff8
Whitespace normalization.
2006-02-26 04:21:50 +00:00
Guido van Rossum
1968ad32cd
- Patch 1433928:
...
- The copy module now "copies" function objects (as atomic objects).
- dict.__getitem__ now looks for a __missing__ hook before raising
KeyError.
- Added a new type, defaultdict, to the collections module.
This uses the new __missing__ hook behavior added to dict (see above).
2006-02-25 22:38:04 +00:00
Raymond Hettinger
f9d88ab39e
SF bug #1219361 Fix typo
2005-06-13 01:10:15 +00:00
Martin v. Löwis
e2713becd8
Build with --disable-unicode again. Fixes #1158607 .
...
Will backport to 2.4.
2005-03-08 15:03:08 +00:00
Raymond Hettinger
f715366f23
Reduce the usage of the types module.
2005-02-07 14:16:21 +00:00
Raymond Hettinger
f0e3569a28
Refactor the copy dispatcher code in copy.py. Simplifies and shortens
...
the code by grouping common cases together.
2004-03-08 05:59:33 +00:00
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
Guido van Rossum
68468eba63
Get rid of many apply() calls.
2003-02-27 20:14:51 +00:00
Tim Peters
f2715e0764
Whitespace normalization.
2003-02-19 02:35:07 +00:00
Guido van Rossum
9c9cf41a01
Remove now unused _better_reduce.
2003-02-19 01:20:40 +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
5aac4e6312
Move _better_reduce from copy.py to copy_reg.py, and also use it in
...
pickle.py, where it makes save_newobj() unnecessary. Tests pass.
2003-02-06 22:57:00 +00:00
Guido van Rossum
85233bf746
Fix a bug in the way __getnewargs__ was handled.
2003-02-06 21:25:12 +00:00