Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #23611: Serializing more "lookupable" objects (such as unbound methods | Serhiy Storchaka | 2015-03-31 | 1 | -15/+18 |
| | | | | or nested classes) now are supported with pickle protocols < 4. | ||||
* | Issue #18473: Fixed 2to3 and 3to2 compatible pickle mappings. | Serhiy Storchaka | 2015-03-31 | 1 | -2/+2 |
| | | | | | | | | Fixed ambigious reverse mappings. Added many new mappings. Import mapping is no longer applied to modules already mapped with full name mapping. Added tests for compatible pickling and unpickling and for consistency of _compat_pickle mappings. | ||||
* | Issue #23094: Fixed readline with frames in Python implementation of pickle. | Serhiy Storchaka | 2015-01-26 | 1 | -1/+1 |
| | |||||
* | Issue #21905: Avoid RuntimeError in pickle.whichmodule() when sys.modules is ↵ | Antoine Pitrou | 2014-10-04 | 1 | -1/+3 |
| | | | | | | mutated while iterating. Patch by Olivier Grisel. | ||||
* | Issue #20976: pyflakes: Remove unused imports | Victor Stinner | 2014-03-20 | 1 | -1/+1 |
| | |||||
* | Issue #6784: Strings from Python 2 can now be unpickled as bytes objects. | Alexandre Vassalotti | 2013-12-07 | 1 | -29/+42 |
| | | | | | | | Initial patch by Merlijn van Deen. I've added a few unrelated docstring fixes in the patch while I was at it, which makes the documentation for pickle a bit more consistent. | ||||
* | Issue #6477: Merge with 3.3. | Alexandre Vassalotti | 2013-11-30 | 1 | -1/+10 |
|\ | |||||
| * | Issue #6477: Added support for pickling the types of built-in singletons. | Alexandre Vassalotti | 2013-11-30 | 1 | -1/+10 |
| | | |||||
* | | Make Ellipsis and NotImplemented picklable through the reduce protocol. | Alexandre Vassalotti | 2013-11-24 | 1 | -8/+0 |
| | | |||||
* | | Make built-in methods picklable through the reduce protocol. | Alexandre Vassalotti | 2013-11-24 | 1 | -8/+1 |
| | | |||||
* | | Make framing optional in pickle protocol 4. | Alexandre Vassalotti | 2013-11-23 | 1 | -71/+59 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow us to control in the future whether to use framing or not. For example, we may want to turn it off for tiny pickle where it doesn't help. The change also improves performance slightly: ### fastpickle ### Min: 0.608517 -> 0.557358: 1.09x faster Avg: 0.798892 -> 0.694738: 1.15x faster Significant (t=3.45) Stddev: 0.17145 -> 0.12704: 1.3496x smaller Timeline: http://goo.gl/3xQE1J ### pickle_dict ### Min: 0.669920 -> 0.615271: 1.09x faster Avg: 0.733633 -> 0.645058: 1.14x faster Significant (t=5.05) Stddev: 0.12041 -> 0.02961: 4.0662x smaller Timeline: http://goo.gl/LpLSXI ### pickle_list ### Min: 0.397583 -> 0.368112: 1.08x faster Avg: 0.412784 -> 0.397223: 1.04x faster Significant (t=2.78) Stddev: 0.01518 -> 0.03653: 2.4068x larger Timeline: http://goo.gl/v39E59 ### unpickle_list ### Min: 0.692935 -> 0.594870: 1.16x faster Avg: 0.730012 -> 0.628395: 1.16x faster Significant (t=17.76) Stddev: 0.02720 -> 0.02995: 1.1012x larger Timeline: http://goo.gl/2P9AEt The following not significant results are hidden, use -v to show them: fastunpickle. | ||||
* | | Issue #17810: Implement PEP 3154, pickle protocol 4. | Antoine Pitrou | 2013-11-23 | 1 | -154/+428 |
| | | | | | | | | Most of the work is by Alexandre. | ||||
* | | Issue #18783: Removed existing mentions of Python long type in docstrings, | Serhiy Storchaka | 2013-08-27 | 1 | -2/+2 |
|\ \ | |/ | | | | | error messages and comments. | ||||
| * | Issue #18783: Removed existing mentions of Python long type in docstrings, | Serhiy Storchaka | 2013-08-27 | 1 | -2/+2 |
| | | | | | | | | error messages and comments. | ||||
* | | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) | Brett Cannon | 2013-07-04 | 1 | -2/+2 |
| | | |||||
* | | Issue #18200: Update the stdlib (except tests) to use | Brett Cannon | 2013-06-13 | 1 | -2/+2 |
| | | | | | | | | ModuleNotFoundError. | ||||
* | | Merge 3.3 | Alexandre Vassalotti | 2013-04-20 | 1 | -2/+8 |
|\ \ | |/ | |||||
| * | Isuse #17720: Fix APPENDS handling in the Python implementation of Unpickler | Alexandre Vassalotti | 2013-04-20 | 1 | -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 Vassalotti | 2013-04-15 | 1 | -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 Pitrou | 2013-04-15 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #17710: Fix pickle raising a SystemError on bogus input. | Antoine Pitrou | 2013-04-15 | 1 | -1/+1 |
| | | |||||
* | | Closes #16551. Cleanup pickle.py. | Serhiy Storchaka | 2013-04-14 | 1 | -138/+85 |
| | | |||||
* | | Style cleanups for pickle.py and _pickle. | Alexandre Vassalotti | 2013-04-14 | 1 | -5/+7 |
|/ | |||||
* | Issue #12848: The pure Python pickle implementation now treats object ↵ | Antoine Pitrou | 2012-11-24 | 1 | -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 Pitrou | 2012-11-24 | 1 | -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 Langa | 2012-03-12 | 1 | -0/+8 |
| | | | | | | | | Thanks for James Sanders for the bug report and the patch. | ||||
* | | Issue #14166: Pickler objects now have an optional `dispatch_table` ↵ | Antoine Pitrou | 2012-03-04 | 1 | -2/+2 |
| | | | | | | | | | | | | attribute which allows to set custom per-pickler reduction functions. Patch by sbt. | ||||
* | | Merge 3.2 | Alexandre Vassalotti | 2011-12-13 | 1 | -1/+5 |
|\ \ | |/ | |||||
| * | Issue #13505: Make pickling of bytes object compatible with Python 2. | Alexandre Vassalotti | 2011-12-13 | 1 | -1/+5 |
| | | | | | | | | Initial patch by sbt. | ||||
* | | Issue #13575: there is only one class type. | Florent Xicluna | 2011-12-12 | 1 | -1/+1 |
| | | |||||
* | | Remove redundant imports. | Florent Xicluna | 2011-11-04 | 1 | -1/+1 |
| | | |||||
* | | Merge 3.2 | Florent Xicluna | 2011-10-28 | 1 | -2/+0 |
|\ \ | |/ |/| | |||||
| * | Issue #7689: Allow pickling of dynamically created classes when their | Antoine Pitrou | 2011-10-04 | 1 | -2/+0 |
| |\ | | | | | | | | | | | | | 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 in | Antoine Pitrou | 2011-08-30 | 1 | -0/+6 |
| | |\ | | | | | | | | | | | | | the C pickle implementation. | ||||
| | * | | remove __version__s dependent on subversion keyword expansion (closes #12221) | Benjamin Peterson | 2011-05-31 | 1 | -2/+0 |
| | | | | |||||
* | | | | Closes #13258: Use callable() built-in in the standard library. | Florent Xicluna | 2011-10-28 | 1 | -1/+1 |
|/ / / | |||||
* | | | Issue #7689: Allow pickling of dynamically created classes when their | Antoine Pitrou | 2011-10-04 | 1 | -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 in | Antoine Pitrou | 2011-08-30 | 1 | -0/+6 |
|/ | | | | the C pickle implementation. | ||||
* | Issue #9410: Various optimizations to the pickle module, leading to | Antoine Pitrou | 2010-09-09 | 1 | -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 display | Alexander Belopolsky | 2010-07-27 | 1 | -1/+23 |
| | | | | the first object in the pickle file. | ||||
* | Issue #5180: Fixed a bug that prevented loading 2.x pickles in 3.x | Alexander Belopolsky | 2010-07-17 | 1 | -16/+5 |
| | | | | python when they contain instances of old-style classes. | ||||
* | Issue #8383: pickle and pickletools use surrogatepass error handler when | Victor Stinner | 2010-04-13 | 1 | -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 Vassalotti | 2010-01-12 | 1 | -51/+7 |
| | |||||
* | Issue #6137: The pickle module now translates module names when loading | Antoine Pitrou | 2009-06-04 | 1 | -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 Vassalotti | 2009-05-25 | 1 | -8/+6 |
| | | | | This matches the behaviour implmented in _pickle. | ||||
* | Merged revisions 72223 via svnmerge from | Antoine Pitrou | 2009-05-02 | 1 | -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 the | Mark Dickinson | 2009-01-20 | 1 | -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 #4904 | Benjamin Peterson | 2009-01-10 | 1 | -1/+1 |
| | |||||
* | Fix issue #4374: Pickle tests fail w/o _pickle extension. | Alexandre Vassalotti | 2008-12-27 | 1 | -0/+10 |
| | | | | Add an initialization check to mimic the interface of _pickle. | ||||
* | Sorry, r67092 is commit miss.... | Hirokazu Yamamoto | 2008-11-04 | 1 | -13/+0 |
| |