Serhiy Storchaka
da87e45add
Issue #892902 : Fixed pickling recursive objects.
2015-11-07 11:15:32 +02:00
Alexandre Vassalotti
df9460f8dc
Issue #6477 : Revert fbb97f6eb3b3 as it broke test_xpickle.
2013-11-30 17:43:42 -08:00
Alexandre Vassalotti
a2934280e5
Issue #6477 : Added pickling support for singletons and their types.
2013-11-30 16:52:03 -08:00
Alexandre Vassalotti
1d3a173326
Issue #16231 : Allow false values other than None to be used as persistent IDs.
2013-11-30 13:24:13 -08:00
Antoine Pitrou
be92971b38
Issue #17710 : Fix cPickle raising a SystemError on bogus input.
2013-04-15 21:35:25 +02:00
Antoine Pitrou
561a821e93
Issue #7689 : Allow pickling of dynamically created classes when their
...
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
2011-10-04 09:34:48 +02:00
Senthil Kumaran
4af1c6a4fc
Fix closes Issue11439 - Handle the SVN Keywords in 2.7 by replacing them with a high number so that code relying on them does not break.
2011-07-28 22:30:27 +08:00
Antoine Pitrou
7430989cda
Isue #5084 : unpickling now interns the attribute names of pickled objects,
...
saving memory and avoiding growth in size of subsequent pickles. Proposal
and original patch by Jake McGuire.
2009-05-02 21:13:23 +00:00
Benjamin Peterson
1d22d00e97
compare types with is
2009-04-05 01:04:38 +00:00
Brett Cannon
211b3cdbdc
Remove use of callable() from pickle to silence warnings under -3.
2008-08-04 21:34:34 +00:00
Georg Brandl
dffbf5f542
Revert copy_reg -> copyreg rename.
2008-05-20 07:49:57 +00:00
Alexandre Vassalotti
ea0b22a167
Patch by Quentin Gallet-Gilles: Renaming leftovers for 2.6.
...
This fixes the omissions of configparser, copyreg, queue and
socketserver renaming.
2008-05-16 18:03:52 +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
fe59dc1bd8
Revert previous checkin.
2005-02-07 15:28:45 +00:00
Raymond Hettinger
f715366f23
Reduce the usage of the types module.
2005-02-07 14:16:21 +00:00
Raymond Hettinger
a6b45cc31d
Eliminate the deprecated option to return None instead of a tuple of arguments in __reduce__().
2004-12-07 07:05:57 +00:00
Raymond Hettinger
3489cad30a
Removed the deprecated bin parameter from the pickle module.
2004-12-05 05:20:42 +00:00
Andrew M. Kuchling
dc54f2be3f
Make 'bin' argument trigger DeprecationWarning
2004-08-07 16:27:24 +00:00
Walter Dörwald
70a6b49821
Replace backticks with repr() or "%r"
...
From SF patch #852334 .
2004-02-12 17:35:32 +00:00
Jeremy Hylton
e3a565eed0
Fix grammar in comment.
2003-06-29 16:59:59 +00:00
Guido van Rossum
443ada47c3
Remove unused _better_reduce (which will disappear soon) and
...
_reconstructor (whose import here is a mystery to me).
2003-02-18 22:49:10 +00:00
Guido van Rossum
c53f009f94
Introducing __reduce_ex__, which is called with a protocol number argument
...
if it exists in preference over __reduce__. Now Tim can go implement this
in cPickle.c.
2003-02-18 22:05:12 +00:00
Tim Peters
080c88b912
cPickle.c, load_build(): Taught cPickle how to pick apart
...
the optional proto 2 slot state.
pickle.py, load_build(): CAUTION: Noted that cPickle's
load_build and pickle's load_build really don't do the same
things with the state, and didn't before this patch either.
cPickle never tries to do .update(), and has no backoff if
instance.__dict__ can't be retrieved. There are no tests
that can tell the difference, and part of what cPickle's
load_build() did looked accidental to me, so I don't know
what the true intent is here.
pickletester.py, test_pickle.py: Got rid of the hack for
exempting cPickle from running some of the proto 2 tests.
dictobject.c, PyDict_Next(): documented intended use.
2003-02-15 03:01:11 +00:00
Tim Peters
8587b3c073
Added a HIGHEST_PROTOCOL module attribute to pickle and cPickle.
2003-02-13 15:44:41 +00:00
Tim Peters
42f08ac1e3
Implemented batching for dicts in cPickle. This is after two failed
...
attempts to merge the C list-batch and dict-batch code -- they worked, but
it was a godawful mess to read.
2003-02-11 22:43:24 +00:00