summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-2/+2
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* Issue #1717, stage 2: remove uses of tp_compare in Modules and mostMark Dickinson2009-02-011-1/+1
| | | | Objects.
* Merged revisions 68903,68906 via svnmerge fromMark Dickinson2009-01-241-1/+2
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r68903 | mark.dickinson | 2009-01-24 16:40:29 +0000 (Sat, 24 Jan 2009) | 5 lines Issue #1672332: Fix unpickling of subnormal floats, which was raising ValueError on some platforms as a result of the platform strtod setting errno on underflow. ........ r68906 | mark.dickinson | 2009-01-24 21:08:38 +0000 (Sat, 24 Jan 2009) | 2 lines Issue #3657: fix occasional test_pickletools failures. ........
* Factor common branch in load_long().Alexandre Vassalotti2009-01-241-5/+2
| | | | Suggested by Neal Norwitz.
* Remove unnecessary copying in load_long().Alexandre Vassalotti2009-01-231-11/+3
|
* Issue #4842, patch 1/2: fix pickle in Python 3.x so that pickling with theMark Dickinson2009-01-201-8/+28
| | | | | | 'L' opcode always appends an 'L' on output, just as 2.x does. When unpickling, remove the trailing 'L' (if present) before passing the result to PyLong_FromString.
* Update copy of PyUnicode_EncodeRawUnicodeEscape in _pickle.Alexandre Vassalotti2008-12-271-5/+36
| | | | Add astral character test case.
* #4373: Reference leak in the pickle module.Amaury Forgeot d'Arc2008-11-251-0/+2
| | | | Reviewed by Brett Cannon.
* #4298: pickle.load() can segfault on invalid or truncated input.Amaury Forgeot d'Arc2008-11-111-0/+5
| | | | Patch and test by Hirokazu Yamamoto.
* Sorry, r67092 is commit miss....Hirokazu Yamamoto2008-11-041-8/+8
|
* Blocked revisions 67002 via svnmergeHirokazu Yamamoto2008-11-041-8/+8
| | | | | | | | ........ r67002 | hirokazu.yamamoto | 2008-10-23 09:37:33 +0900 | 1 line Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL. ........
* Merged revisions 67049 via svnmerge fromAmaury Forgeot d'Arc2008-10-301-16/+28
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r67049 | amaury.forgeotdarc | 2008-10-30 22:18:34 +0100 (jeu., 30 oct. 2008) | 8 lines Issue #4176: Pickle would crash the interpreter when a __reduce__ function does not return an iterator for the 4th and 5th items. (sequence-like and mapping-like state) A list is not an iterator... Will backport to 2.6 and 2.5. ........
* #3664: The pickle module could segfault if a Pickler instance is not ↵Amaury Forgeot d'Arc2008-10-171-0/+15
| | | | | | | | | correctly initialized: when a subclass forgets to call the base __init__ method, or when __init__ is called a second time with invalid parameters Patch by Alexandre Vassalotti.
* #3640: Correct a crash in cPickle on 64bit platforms, in the case of deeply ↵Amaury Forgeot d'Arc2008-09-111-62/+118
| | | | | | nested lists or dicts. Reviewed by Martin von Loewis.
* Issue #3660 (part of): fix a memory leak in _pickle.Antoine Pitrou2008-09-051-1/+5
| | | | Patch by Amaury Forgeot d'Arc, review by me.
* Issue #3657: Fix uninitialized memory read when pickling longs.Neal Norwitz2008-08-241-2/+2
| | | | | | | | | | | The conversion to the unicode API was incorrect, it should use bytes. repr is a bad variable name. The use is overloaded, but I'll leave that to fix later. R=Brett TESTED=./python -E -tt ./Lib/test/regrtest.py -uall valgrind -q --leak-check=yes --suppressions=Misc/valgrind-python.supp \ ./python -E -tt ./Lib/test/regrtest.py test_pickletools
* Issue 3514: Fixed segfault dues to infinite loop in __getattr__.Alexandre Vassalotti2008-08-151-2/+5
|
* Rename PyUnicode_AsString -> _PyUnicode_AsString andMarc-André Lemburg2008-08-071-3/+3
| | | | | | | | | PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark them for interpreter internal use only. We'll have to rework these APIs or create new ones for the purpose of accessing the UTF-8 representation of Unicode objects for 3.1.
* Fixed _pickle to use Py_EnterRecursiveCall().Alexandre Vassalotti2008-07-131-11/+3
|
* Fixed compiler warnings on MSVC9.0Alexandre Vassalotti2008-06-131-2/+3
|
* Restore _pickle module accelerator module.Alexandre Vassalotti2008-06-121-0/+4546
| | | | | Removed Windows support temporarily. 64bit bug with integer unpickling is now fixed.
* revert the addition of _pickle because it was causing havok with 64-bitBenjamin Peterson2008-06-121-4546/+0
|
* Issue 2917: Merge the pickle and cPickle module.Alexandre Vassalotti2008-06-111-0/+4546