summaryrefslogtreecommitdiff
path: root/Lib/test/test_pickletools.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45229: Make pickle tests discoverable (GH-28467)Serhiy Storchaka2021-09-201-6/+6
|
* bpo-41521: Rename blacklist parameter to not_exported (GH-21824)Victor Stinner2020-08-171-28/+29
| | | | Rename "blacklist" parameter of test.support.check__all__() to "not_exported".
* bpo-36785: PEP 574 implementation (GH-7076)Antoine Pitrou2019-05-261-8/+9
|
* bpo-31993: Do not allocate large temporary buffers in pickle dump. (#4353)Olivier Grisel2018-01-061-0/+3
| | | | | | | | | | | | | | | | | The picklers do no longer allocate temporary memory when dumping large bytes and str objects into a file object. Instead the data is directly streamed into the underlying file object. Previously the C implementation would buffer all content and issue a single call to file.write() at the end of the dump. With protocol 4 this behavior has changed to issue one call to file.write() per frame. The Python pickler with protocol 4 now dumps each frame content as a memoryview to an IOBytes instance that is never reused and the memoryview is no longer released after the call to write. This makes it possible for the file object to delay access to the memoryview of previous frames without forcing any additional memory copy as was already possible with the C pickler.
* bpo-32032: Test both implementations of module-level pickle API. (#4401)Serhiy Storchaka2017-11-151-2/+1
|
* Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
|
* Issue #23883: Add missing APIs to __all__; patch by Jacek KołodziejMartin Panter2015-11-141-0/+33
|
* Issue #19858: pickletools.optimize() now aware of the MEMOIZE opcode, canSerhiy Storchaka2014-12-161-0/+43
| | | | | produce more compact result and no longer produces invalid output if input data contains MEMOIZE opcodes together with PUT or BINPUT opcodes.
* Issue #19754: Make pickletools.optimize respect the frame size target.Alexandre Vassalotti2013-12-011-2/+0
|
* Selectively re-enable framing testsAntoine Pitrou2013-11-241-0/+2
|
* Issue #11286: Fixed unpickling of empty 2.x strings.Alexander Belopolsky2011-02-241-2/+2
|
* Issue #6137: The pickle module now translates module names when loadingAntoine Pitrou2009-06-041-0/+3
| | | | | | 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.
* Restore _pickle module accelerator module.Alexandre Vassalotti2008-06-121-2/+0
| | | | | 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-0/+2
|
* Issue 2917: Merge the pickle and cPickle module.Alexandre Vassalotti2008-06-111-2/+0
|
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-3/+3
|
* - A new pickle protocol (protocol 3) is added with explicit supportGuido van Rossum2008-03-171-1/+1
| | | | | | | | | | | | | 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.
* Merged revisions ↵Christian Heimes2008-02-111-1/+22
| | | | | | | | | | | | | | | | | | | | 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60697-60700,60705-60706,60708,60711,60714,60720,60724-60734 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r60731 | raymond.hettinger | 2008-02-11 19:51:08 +0100 (Mon, 11 Feb 2008) | 1 line No need to register classes that already inherit from ABCs. ........ r60733 | lars.gustaebel | 2008-02-11 20:17:10 +0100 (Mon, 11 Feb 2008) | 2 lines Make sure that xstar headers are read correctly. ........ r60734 | raymond.hettinger | 2008-02-11 21:05:53 +0100 (Mon, 11 Feb 2008) | 1 line Add tests for pickletools.optimize(). ........
* Moving pickletools.py from the sandbox into the std library. I startedTim Peters2003-01-271-0/+3
this over the weekend, and it made faster & better progress than I expected -- it's already useful <wink>.