summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-2/+2
|\ | | | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-2/+2
| | | | | | | | error messages and comments.
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-2/+2
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-2/+2
| | | | | | | | ModuleNotFoundError.
* | Merge 3.3Alexandre Vassalotti2013-04-201-2/+8
|\ \ | |/
| * Isuse #17720: Fix APPENDS handling in the Python implementation of UnpicklerAlexandre Vassalotti2013-04-201-2/+8
| | | | | | | | to correctly process the opcode when it is used on non-list objects.
* | Make C and Python implementations of pickle load STRING opcodes the same way.Alexandre Vassalotti2013-04-161-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-1/+1
|\ \ | |/
| * Issue #17710: Fix pickle raising a SystemError on bogus input.Antoine Pitrou2013-04-151-1/+1
| |
* | Closes #16551. Cleanup pickle.py.Serhiy Storchaka2013-04-141-138/+85
| |
* | Style cleanups for pickle.py and _pickle.Alexandre Vassalotti2013-04-141-5/+7
|/
* Issue #12848: The pure Python pickle implementation now treats object ↵Antoine Pitrou2012-11-241-13/+26
|\ | | | | | | | | | | 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-13/+26
| | | | | | | | | | | | lengths as unsigned 32-bit integers, like the C implementation does. Patch by Serhiy Storchaka.
* | Fixes #13842: cannot pickle Ellipsis or NotImplemented.Łukasz Langa2012-03-121-0/+8
| | | | | | | | 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-2/+2
| | | | | | | | | | | | attribute which allows to set custom per-pickler reduction functions. Patch by sbt.
* | Merge 3.2Alexandre Vassalotti2011-12-131-1/+5
|\ \ | |/
| * Issue #13505: Make pickling of bytes object compatible with Python 2.Alexandre Vassalotti2011-12-131-1/+5
| | | | | | | | Initial patch by sbt.
* | Issue #13575: there is only one class type.Florent Xicluna2011-12-121-1/+1
| |
* | Remove redundant imports.Florent Xicluna2011-11-041-1/+1
| |
* | Merge 3.2Florent Xicluna2011-10-281-1/+1
|\ \ | |/
| * Closes #13258: Use callable() built-in in the standard library.Florent Xicluna2011-10-281-1/+1
| |
* | Issue #7689: Allow pickling of dynamically created classes when theirAntoine Pitrou2011-10-041-9/+9
|\ \ | |/ | | | | | | 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-9/+9
| | | | | | | | | | metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and Craig Citro.
* | Issue #12847: Fix a crash with negative PUT and LONG_BINPUT arguments inAntoine Pitrou2011-08-291-0/+6
|\ \ | |/ | | | | the C pickle implementation.
| * Issue #12847: Fix a crash with negative PUT and LONG_BINPUT arguments inAntoine Pitrou2011-08-291-0/+6
| | | | | | | | the C pickle implementation.
* | remove __version__s dependent on subversion keyword expansion (closes #12221)Benjamin Peterson2011-06-011-2/+0
|/
* Issue #9410: Various optimizations to the pickle module, leading toAntoine Pitrou2010-09-091-6/+6
| | | | | speedups up to 4x (depending on the benchmark). Mostly ported from Unladen Swallow; initial patch by Alexandre Vassalotti.
* Issue #9378: python -m pickle <pickle file> will now load and displayAlexander Belopolsky2010-07-271-1/+23
| | | | the first object in the pickle file.
* Issue #5180: Fixed a bug that prevented loading 2.x pickles in 3.xAlexander Belopolsky2010-07-171-16/+5
| | | | python when they contain instances of old-style classes.
* Issue #8383: pickle and pickletools use surrogatepass error handler whenVictor Stinner2010-04-131-2/+2
| | | | | encoding unicode as utf8 to support lone surrogates and stay compatible with Python 2.x and 3.0
* Simplified long coding in pickle.py.Alexandre Vassalotti2010-01-121-51/+7
|
* Issue #6137: The pickle module now translates module names when loadingAntoine Pitrou2009-06-041-16/+40
| | | | | | or dumping pickles with a 2.x-compatible protocol, in order to make data sharing and migration easier. This behaviour can be disabled using the new `fix_imports` optional argument.
* Only try to intern str objects when unpickling attributes.Alexandre Vassalotti2009-05-251-8/+6
| | | | This matches the behaviour implmented in _pickle.
* Merged revisions 72223 via svnmerge fromAntoine Pitrou2009-05-021-1/+9
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72223 | antoine.pitrou | 2009-05-02 23:13:23 +0200 (sam., 02 mai 2009) | 5 lines Isue #5084: unpickling now interns the attribute names of pickled objects, saving memory and avoiding growth in size of subsequent pickles. Proposal and original patch by Jake McGuire. ........
* Issue #4842, patch 1/2: fix pickle in Python 3.x so that pickling with theMark Dickinson2009-01-201-1/+3
| | | | | | '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.
* fix typo #4904Benjamin Peterson2009-01-101-1/+1
|
* Fix issue #4374: Pickle tests fail w/o _pickle extension.Alexandre Vassalotti2008-12-271-0/+10
| | | | Add an initialization check to mimic the interface of _pickle.
* Sorry, r67092 is commit miss....Hirokazu Yamamoto2008-11-041-13/+0
|
* Blocked revisions 67002 via svnmergeHirokazu Yamamoto2008-11-041-0/+13
| | | | | | | | ........ r67002 | hirokazu.yamamoto | 2008-10-23 09:37:33 +0900 | 1 line Issue #4183: Some tests didn't run with pickle.HIGHEST_PROTOCOL. ........
* Remove a confusing statement in Pickler's docstring.Alexandre Vassalotti2008-10-251-2/+0
| | | | Pickler does not read anything from the given file.
* Restore _pickle module accelerator module.Alexandre Vassalotti2008-06-121-83/+71
| | | | | 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-71/+83
|
* Removed exception renaming cruft in pickle.py.Alexandre Vassalotti2008-06-111-3/+0
|
* Issue 2917: Merge the pickle and cPickle module.Alexandre Vassalotti2008-06-111-83/+74
|
* Change Pickler._batch_appends() and Pickler._batch_setitems() to takeAlexandre Vassalotti2008-05-141-2/+4
| | | | an iterable object, instead of an iterator.
* Rename copy_reg module to copyreg.Alexandre Vassalotti2008-05-111-4/+4
| | | | | | | | | | | | | | | Updated documentation. Merged revisions 63042 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r63042 | alexandre.vassalotti | 2008-05-11 04:25:28 -0400 (Sun, 11 May 2008) | 5 lines Added module stub for copy_reg renaming in 3.0. Renamed copy_reg to copyreg in the standard library, to avoid spurious warnings and ease later merging to py3k branch. Public documentation remains intact. ........
* Removed memoryview objects from bytes_types.Alexandre Vassalotti2008-05-031-1/+1
| | | | | | memoryview objects have a different API (such as for indexing) than bytes and bytesarray objects, so memoryview objects shouldn't be treated blindly as "bytes" objects.
* - A new pickle protocol (protocol 3) is added with explicit supportGuido van Rossum2008-03-171-19/+45
| | | | | | | | | | | | | for bytes. This is the default protocol. It intentionally cannot be unpickled by Python 2.x. - When a pickle written by Python 2.x contains an (8-bit) str instance, this is now decoded to a (Unicode) str instance. The encoding used to do this defaults to ASCII, but can be overridden via two new keyword arguments to the Unpickler class. Previously this would create bytes instances, which is usually wrong: str instances are often used to pickle attribute names etc., and text is more common than binary data anyway.
* Rename buffer -> bytearray.Guido van Rossum2007-11-211-1/+1
|
* Merging the py3k-pep3137 branch back into the py3k branch.Guido van Rossum2007-11-061-14/+18
| | | | | | | | | | | | | | No detailed change log; just check out the change log for the py3k-pep3137 branch. The most obvious changes: - str8 renamed to bytes (PyString at the C level); - bytes renamed to buffer (PyBytes at the C level); - PyString and PyUnicode are no longer compatible. I.e. we now have an immutable bytes type and a mutable bytes type. The behavior of PyString was modified quite a bit, to make it more bytes-like. Some changes are still on the to-do list.