summaryrefslogtreecommitdiff
path: root/Lib/pickle.py
AgeCommit message (Expand)AuthorLines
2003-06-29Fix grammar in comment.Jeremy Hylton-1/+1
2003-02-18Remove unused _better_reduce (which will disappear soon) andGuido van Rossum-1/+1
2003-02-18Introducing __reduce_ex__, which is called with a protocol number argumentGuido van Rossum-15/+14
2003-02-15cPickle.c, load_build(): Taught cPickle how to pick apartTim Peters-0/+4
2003-02-13Added a HIGHEST_PROTOCOL module attribute to pickle and cPickle.Tim Peters-3/+7
2003-02-11Implemented batching for dicts in cPickle. This is after two failedTim Peters-1/+2
2003-02-11Implemented list batching in cPickle.Tim Peters-0/+1
2003-02-09Rename 'proto' keyword arg to 'protocol' . Greg Ward's suggestion.Guido van Rossum-17/+17
2003-02-06Move _better_reduce from copy.py to copy_reg.py, and also use it inGuido van Rossum-122/+4
2003-02-06Remove a debug print statement.Guido van Rossum-1/+0
2003-02-06No need for a continuation line.Jeremy Hylton-2/+1
2003-02-06Replace hasattr() + getattr() with single getattr() and default value.Jeremy Hylton-2/+1
2003-02-04Rename the extension registry variables to have leading underscores --Guido van Rossum-5/+5
2003-02-03_slotnames(): this is a fairly expensive calculation. Cache theGuido van Rossum-6/+23
2003-02-03_slotnames(): exclude __dict__ and __weakref__; these aren't realGuido van Rossum-1/+2
2003-02-03Support keyword argument 'bin', with a pending deprecation warning.Guido van Rossum-5/+13
2003-02-02cPickle support for TUPLE[123]. Incidentally plugged several undetectedTim Peters-7/+9
2003-02-02long(string, base) now takes time linear in len(string) when base is aTim Peters-4/+1
2003-02-02cPickle.c: Full support for the new LONG1 and LONG4. Added comments.Tim Peters-7/+15
2003-02-01The C pickle now knows how to deal with a proto= argument. AssortedTim Peters-11/+9
2003-01-31Change the default protocol back to 0.Guido van Rossum-8/+12
2003-01-31Another extension to reduce(). It can return a 4- or 5-tuple now.Guido van Rossum-67/+92
2003-01-31Provide __module__ attributes for functions defined in C and Python.Jeremy Hylton-3/+6
2003-01-31Pass the object to save_reduce(), so the memoize() call can go intoGuido van Rossum-3/+8
2003-01-31Add a magical feature to save_reduce so that __reduce__ can causeGuido van Rossum-4/+40
2003-01-31It's Official: for LONG1/LONG4, a "byte count" of 0 is taken as aTim Peters-6/+17
2003-01-31Fix typoNeal Norwitz-1/+1
2003-01-31Linear-time implementations of {encode,decode}_long.Tim Peters-19/+50
2003-01-30load_inst(), load_obj(): Put the bulk of these into a common newTim Peters-26/+18
2003-01-30There was a subtle big in save_newobj(): it used self.save_global(t)Guido van Rossum-1/+2
2003-01-30Slight code rearrangement to avoid testing getstate twice.Guido van Rossum-22/+23
2003-01-30In save_newobj(), if an object's __getnewargs__ and __getstate__ areGuido van Rossum-0/+23
2003-01-29Use %c rather than chr() to turn some ints into chars.Guido van Rossum-2/+2
2003-01-29Implement appropriate __getnewargs__ for all immutable subclassable builtinGuido van Rossum-8/+4
2003-01-29Declare Protocol 2 as implemented.Guido van Rossum-1/+1
2003-01-29Support for extension codes. (By accident I checked in the tests first.)Guido van Rossum-8/+63
2003-01-29pickle: Comment repair.Tim Peters-4/+9
2003-01-28Add a comment about how some built-in types should grow aGuido van Rossum-1/+3
2003-01-28Get rid of __safe_for_unpickling__ and safe_constructors.Guido van Rossum-28/+12
2003-01-28Instead of bad hacks trying to worm around the inheritedGuido van Rossum-37/+79
2003-01-28The default __reduce__ on the base object type obscured anyGuido van Rossum-7/+39
2003-01-28Move the NEWOBJ-generating code to a separate function, and invoke itGuido van Rossum-24/+28
2003-01-28Some experimental support for generating NEWOBJ with proto=2, andGuido van Rossum-2/+31
2003-01-28save_empty_tuple(): Comment on why we can't get rid of this.Tim Peters-0/+3
2003-01-28save_dict(): Added a comment about the control flow NealN missed.Tim Peters-1/+2
2003-01-28_is_string_secure(): This method is no longer used; removed it. (ItTim Peters-37/+0
2003-01-28Made save() fit on a page, while adding comments. (I moved some typeGuido van Rossum-59/+68
2003-01-28Got rid of the _quotes global. Used only once, and is trivial.Tim Peters-3/+1
2003-01-28Add a few comments. Change the way the protocol is checked (it mustGuido van Rossum-2/+8
2003-01-28Rename all variables 'object' to 'obj' to avoid conflicts with theGuido van Rossum-112/+113