summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-7/+7
|\ | | | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-7/+7
| | | | | | | | error messages and comments.
* | Issue #18559: Fix NULL pointer dereference error in _pickle moduleChristian Heimes2013-07-261-4/+6
|\ \ | |/
| * Issue #18559: Fix NULL pointer dereference error in _pickle moduleChristian Heimes2013-07-261-4/+6
| |
* | Issue #18408: handle PySys_GetObject() failure, raise a RuntimeErrorVictor Stinner2013-07-161-2/+6
| |
* | Issue #18408: _pickle.c: Add missing PyErr_NoMemory() on memory allocation ↵Victor Stinner2013-07-111-2/+7
| | | | | | | | failures
* | Issue #18408: _PyMemoTable_ResizeTable() now restores the old table ifVictor Stinner2013-07-111-1/+1
| | | | | | | | | | | | allocating a bigger table failed PyMemoTable destructor does crash if mt_table is NULL.
* | Issue #18408: Oh, I was wrong: Pickler_New() must call Py_DECREF() to destroyVictor Stinner2013-07-111-1/+1
| | | | | | | | the newly created pickler, and not PyObject_GC_Del().
* | Issue #18408: Fix _Pickler_New() and _Unpickler_New(): initialize allVictor Stinner2013-07-111-22/+14
| | | | | | | | | | | | | | | | | | attributes before handling errors _Pickler_New() now calls PyObject_GC_Del() instead of Py_DECREF() on error, because the pickle object is created using PyObject_GC_New(). Fix a crash in the destructor when an attribute is not initiallized.
* | Issue #18203: Add _PyMem_RawStrdup() and _PyMem_Strdup()Victor Stinner2013-07-071-6/+6
| | | | | | | | | | Replace strdup() with _PyMem_RawStrdup() or _PyMem_Strdup(), depending if the GIL is held or not.
* | Singular form just like the other error message.Christian Heimes2013-07-011-1/+1
|\ \ | |/
| * Singular form just like the other error message.Christian Heimes2013-07-011-1/+1
| |
* | Issue #18339: Negative ints keys in unpickler.memo dict no longer cause aChristian Heimes2013-07-011-0/+5
|\ \ | |/ | | | | segfault inside the _pickle C extension.
| * Issue #18339: Negative ints keys in unpickler.memo dict no longer cause aChristian Heimes2013-07-011-0/+5
| | | | | | | | segfault inside the _pickle C extension.
* | Fix resource leak in pickle moduleChristian Heimes2013-06-291-1/+3
| | | | | | | | | | CID 983309 (#1 of 1): Resource leak (RESOURCE_LEAK) leaked_storage: Variable unicode_str going out of scope leaks the storage it points to.
* | Merge 3.3Alexandre Vassalotti2013-04-211-0/+2
|\ \ | |/
| * Fix reference leak in _pickle.Alexandre Vassalotti2013-04-211-0/+2
| |
* | Make C and Python implementations of pickle load STRING opcodes the same way.Alexandre Vassalotti2013-04-161-19/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | The C version tried to remove trailing whitespace between the last quote and the newline character. I am not sure why it had this because pickle never generated such pickles---for this to happen repr(some_string) would need to return trailing whitespace. It was maybe there to make it easier for people to write pickles in text editors. Anyhow, the Python version doesn't do this so there is no point keeping this around anymore. Also, I've changed the exception raised when a bad pickle is encountered. Again this unlikely to make much difference to anyone though it does make testing slightly nicer for us.
* | Issue #17710: Fix pickle raising a SystemError on bogus input.Antoine Pitrou2013-04-151-4/+4
|\ \ | |/
| * Issue #17710: Fix pickle raising a SystemError on bogus input.Antoine Pitrou2013-04-151-4/+4
| |
* | Style cleanups for pickle.py and _pickle.Alexandre Vassalotti2013-04-141-4/+2
| |
* | Merge 3.3Alexandre Vassalotti2013-04-141-2/+2
|\ \ | |/
| * Clean up error messages raised by save_reduce in _pickle.Alexandre Vassalotti2013-04-141-2/+2
| |
* | gibibytes (Arfrever)Antoine Pitrou2013-04-071-1/+1
| |
* | Issue #15596: Faster pickling of unicode strings.Antoine Pitrou2013-04-071-35/+69
|/
* Issue #17193: Use binary prefixes (KiB, MiB, GiB) for memory units.Serhiy Storchaka2013-02-161-2/+2
|
* Issue #12848: The pure Python pickle implementation now treats object ↵Antoine Pitrou2012-11-241-1/+1
|\ | | | | | | | | | | lengths as unsigned 32-bit integers, like the C implementation does. Patch by Serhiy Storchaka.
| * Issue #12848: The pure Python pickle implementation now treats object ↵Antoine Pitrou2012-11-241-1/+1
| | | | | | | | | | | | lengths as unsigned 32-bit integers, like the C implementation does. Patch by Serhiy Storchaka.
* | cleanup Ellipsis and NotImplemented strings after we're doneBenjamin Peterson2012-03-161-2/+8
| |
* | minor PEP7-related fixŁukasz Langa2012-03-121-2/+2
| |
* | #13842: check whether PyUnicode_FromString succeededŁukasz Langa2012-03-121-3/+8
| |
* | Fixes #13842: cannot pickle Ellipsis or NotImplemented.Łukasz Langa2012-03-121-0/+21
| | | | | | | | Thanks for James Sanders for the bug report and the patch.
* | Issue #14166: Pickler objects now have an optional `dispatch_table` ↵Antoine Pitrou2012-03-041-9/+30
| | | | | | | | | | | | attribute which allows to set custom per-pickler reduction functions. Patch by sbt.
* | Merge 3.2Alexandre Vassalotti2011-12-131-13/+45
|\ \ | |/
| * Issue #13505: Make pickling of bytes object compatible with Python 2.Alexandre Vassalotti2011-12-131-13/+45
| | | | | | | | Initial patch by sbt.
* | Port SetAttrString/HasAttrString to SetAttrId/GetAttrId.Martin v. Löwis2011-10-141-3/+4
| |
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-12/+12
| |
* | Issue #13088: Add shared Py_hexdigits constant to format a number into base 16Victor Stinner2011-10-141-13/+12
| |
* | Use identifier API for PyObject_GetAttrString.Martin v. Löwis2011-10-101-12/+22
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-4/+10
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Issue #7689: Allow pickling of dynamically created classes when theirAntoine Pitrou2011-10-041-4/+4
|\ \ | |/ | | | | | | metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and Craig Citro.
| * Issue #7689: Allow pickling of dynamically created classes when theirAntoine Pitrou2011-10-041-4/+4
| | | | | | | | | | metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and Craig Citro.
* | raw_unicode_escape() uses the new Unicode APIVictor Stinner2011-09-291-46/+21
| |
* | Strip trailing spaces of _pickle.cVictor Stinner2011-09-291-17/+17
| |
* | Implement PEP 393.Martin v. Löwis2011-09-281-3/+1
| |
* | merge 3.2Benjamin Peterson2011-09-231-6/+5
|\ \ | |/
| * fix compiler compliant about \0 not being an opcodeBenjamin Peterson2011-09-231-6/+5
| |
* | Issue #12847: Fix a crash with negative PUT and LONG_BINPUT arguments inAntoine Pitrou2011-08-291-1/+10
|\ \ | |/ | | | | the C pickle implementation.
| * Issue #12847: Fix a crash with negative PUT and LONG_BINPUT arguments inAntoine Pitrou2011-08-291-1/+10
| | | | | | | | the C pickle implementation.
* | Issue #11564: Avoid crashes when trying to pickle huge objects or containersAntoine Pitrou2011-08-291-72/+103
|\ \ | |/ | | | | (more than 2**31 items). Instead, in most cases, an OverflowError is raised.