summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 69214 via svnmerge fromMark Dickinson2009-02-021-2/+2
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r69214 | mark.dickinson | 2009-02-02 20:36:42 +0000 (Mon, 02 Feb 2009) | 4 lines Issue #1717: rename tp_compare to tp_reserved. I'll change the type of tp_compare in a separate commit, for ease of reversion should things go wrong. ........
* Merged revisions 69181 via svnmerge fromMark Dickinson2009-02-011-1/+1
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r69181 | mark.dickinson | 2009-02-01 10:28:51 +0000 (Sun, 01 Feb 2009) | 3 lines Issue #1717, stage 2: remove uses of tp_compare in Modules and most Objects. ........
* Merged revisions 68908 via svnmerge fromMark Dickinson2009-01-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r68908 | mark.dickinson | 2009-01-24 21:46:33 +0000 (Sat, 24 Jan 2009) | 15 lines Merged revisions 68903,68906 via svnmerge from 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. ........ ................
* Merged revisions 68814-68815 via svnmerge fromMark Dickinson2009-01-201-8/+28
| | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r68814 | mark.dickinson | 2009-01-20 20:43:58 +0000 (Tue, 20 Jan 2009) | 5 lines Issue #4842, patch 1/2: fix pickle in Python 3.x so that pickling with the '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. ........ r68815 | mark.dickinson | 2009-01-20 20:45:53 +0000 (Tue, 20 Jan 2009) | 2 lines Issue 4842, patch 2/2: int('3L') should be invalid in Python 3.x. ........
* Merged revisions 67937-67938 via svnmerge fromGeorg Brandl2009-01-031-5/+36
| | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r67937 | alexandre.vassalotti | 2008-12-27 08:32:41 +0100 (Sat, 27 Dec 2008) | 3 lines Update copy of PyUnicode_EncodeRawUnicodeEscape in _pickle. Add astral character test case. ........ r67938 | alexandre.vassalotti | 2008-12-27 10:09:15 +0100 (Sat, 27 Dec 2008) | 3 lines Fix wrong bytes type conversion in PyUnicode_AsUnicodeEscapeString. Fix wrong bytes type conversion in PyUnicode_AsUnicodeDecodeString. ........
* #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