summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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.
| * 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.
* | Followup to 8e824e09924a: fix regression on 32-bit buildsAntoine Pitrou2011-08-131-2/+5
| |
* | Issue #12744: Fix inefficient representation of integersAntoine Pitrou2011-08-131-1/+1
| | | | | | | | between 2**31 and 2**63 on systems with a 64-bit C "long".
* | Issue #12687: Fix a possible buffering bug when unpickling text mode ↵Antoine Pitrou2011-08-111-2/+1
|\ \ | |/ | | | | (protocol 0, mostly) pickles.
| * Issue #12687: Fix a possible buffering bug when unpickling text mode ↵Antoine Pitrou2011-08-111-2/+1
| | | | | | | | (protocol 0, mostly) pickles.
* | Issue #11321: Fix a crash with multiple imports of the _pickle module whenAntoine Pitrou2011-07-151-0/+2
|\ \ | |/ | | | | embedding Python. Patch by Andreas Stührk.
| * Issue #11321: Fix a crash with multiple imports of the _pickle module whenAntoine Pitrou2011-07-151-0/+2
| | | | | | | | embedding Python. Patch by Andreas Stührk.
* | #11565: Merge with 3.2.Ezio Melotti2011-03-161-1/+1
|\ \ | |/
| * #11565: Merge with 3.1.Ezio Melotti2011-03-161-1/+1
| |\
| | * #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-161-1/+1
| | |
| | * Merged revisions 88147 via svnmerge fromAntoine Pitrou2011-01-231-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88147 | antoine.pitrou | 2011-01-23 18:12:25 +0100 (dim., 23 janv. 2011) | 3 lines Issue #10987: Fix the recursion limit handling in the _pickle module. ........
| | * Merged revisions 84502 via svnmerge fromAntoine Pitrou2010-09-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84502 | antoine.pitrou | 2010-09-04 20:45:37 +0200 (sam., 04 sept. 2010) | 3 lines Fix typos in error messages (thanks Arfrever). ........
| | * Merged revisions 82937 via svnmerge fromAlexander Belopolsky2010-07-171-24/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82937 | alexander.belopolsky | 2010-07-17 18:50:45 -0400 (Sat, 17 Jul 2010) | 3 lines Issue #5180: Fixed a bug that prevented loading 2.x pickles in 3.x python when they contain instances of old-style classes. ........
| | * Merged revisions 80031 via svnmerge fromVictor Stinner2010-04-131-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r80031 | victor.stinner | 2010-04-13 13:07:24 +0200 (mar., 13 avril 2010) | 4 lines Issue #8383: pickle and pickletools use surrogatepass error handler when encoding unicode as utf8 to support lone surrogates and stay compatible with Python 2.x and 3.0 ........