Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bpo-31993: Do not use memoryview when pickle large strings. (#5154) | Serhiy Storchaka | 2018-01-12 | 1 | -30/+30 | |
| | | | | | | PyMemoryView_FromMemory() created a memoryview referring to the internal data of the string. When the string is destroyed the memoryview become referring to a freed memory. | |||||
* | bpo-31993: Do not create frames for large bytes and str objects (#5114) | Serhiy Storchaka | 2018-01-11 | 1 | -8/+9 | |
| | | | | | | | when serialize into memory buffer with C pickle implementations. This optimization already is performed when serialize into memory with Python pickle implementations or into a file with both implementations. | |||||
* | bpo-31993: Do not allocate large temporary buffers in pickle dump. (#4353) | Olivier Grisel | 2018-01-06 | 1 | -13/+118 | |
| | | | | | | | | | | | | | | | | | 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-32037: Use the INT opcode for 32-bit integers in protocol 0 pickles. (#4407) | Serhiy Storchaka | 2017-11-16 | 1 | -3/+3 | |
| | ||||||
* | bpo-32032: Test both implementations of module-level pickle API. (#4401) | Serhiy Storchaka | 2017-11-15 | 1 | -12/+12 | |
| | ||||||
* | Replace KB unit with KiB (#4293) | Victor Stinner | 2017-11-08 | 1 | -2/+2 | |
| | | | | | | | | | | | kB (*kilo* byte) unit means 1000 bytes, whereas KiB ("kibibyte") means 1024 bytes. KB was misused: replace kB or KB with KiB when appropriate. Same change for MB and GB which become MiB and GiB. Change the output of Tools/iobench/iobench.py. Round also the size of the documentation from 5.5 MB to 5 MiB. | |||||
* | Issue #17711: Fixed unpickling by the persistent ID with protocol 0. | Serhiy Storchaka | 2016-07-17 | 1 | -0/+29 | |
|\ | | | | | | | Original patch by Alexandre Vassalotti. | |||||
| * | Issue #17711: Fixed unpickling by the persistent ID with protocol 0. | Serhiy Storchaka | 2016-07-17 | 1 | -0/+29 | |
| | | | | | | | | Original patch by Alexandre Vassalotti. | |||||
* | | Fixed typo in pickle tests. | Serhiy Storchaka | 2016-03-04 | 1 | -2/+2 | |
|\ \ | |/ | ||||||
| * | Fixed typo in pickle tests. | Serhiy Storchaka | 2016-03-04 | 1 | -2/+2 | |
| | | ||||||
* | | Make catched exception more specific and correct a comment. | Serhiy Storchaka | 2015-12-30 | 1 | -3/+3 | |
|\ \ | |/ | ||||||
| * | Make catched exception more specific and correct a comment. | Serhiy Storchaka | 2015-12-30 | 1 | -3/+3 | |
| | | ||||||
* | | Issue #25761: Improved detecting errors in broken pickle data. | Serhiy Storchaka | 2015-12-06 | 1 | -11/+6 | |
| | | ||||||
* | | Issue #25761: Added more test cases for testing unpickling broken data. | Serhiy Storchaka | 2015-11-29 | 1 | -93/+197 | |
|\ \ | |/ | | | | | Output raised exception at verbose level 2 (-vv). | |||||
| * | Issue #25761: Added more test cases for testing unpickling broken data. | Serhiy Storchaka | 2015-11-29 | 1 | -93/+197 | |
| |\ | | | | | | | | | | Output raised exception at verbose level 2 (-vv). | |||||
| | * | Issue #25761: Added more test cases for testing unpickling broken data. | Serhiy Storchaka | 2015-11-29 | 1 | -93/+197 | |
| | | | | | | | | | | | | Output raised exception at verbose level 2 (-vv). | |||||
* | | | Issue #23914: Fixed SystemError raised by unpickler on broken pickle data. | Serhiy Storchaka | 2015-11-23 | 1 | -1/+84 | |
|\ \ \ | |/ / | ||||||
| * | | Issue #23914: Fixed SystemError raised by unpickler on broken pickle data. | Serhiy Storchaka | 2015-11-23 | 1 | -1/+84 | |
| |\ \ | | |/ | ||||||
| | * | Issue #23914: Fixed SystemError raised by unpickler on broken pickle data. | Serhiy Storchaka | 2015-11-23 | 1 | -1/+84 | |
| | | | ||||||
* | | | Issue #892902: Added new tests for pickling recursive collections. | Serhiy Storchaka | 2015-11-07 | 1 | -16/+104 | |
|\ \ \ | |/ / | ||||||
| * | | Issue #892902: Added new tests for pickling recursive collections. | Serhiy Storchaka | 2015-11-07 | 1 | -16/+104 | |
| |\ \ | | |/ | ||||||
| | * | Issue #892902: Added new tests for pickling recursive collections. | Serhiy Storchaka | 2015-11-07 | 1 | -16/+104 | |
| | | | ||||||
* | | | Issue #24164: Objects that need calling ``__new__`` with keyword arguments, | Serhiy Storchaka | 2015-10-10 | 1 | -4/+2 | |
|/ / | | | | | | | can now be pickled using pickle protocols older than protocol version 4. | |||||
* | | Issue #25262. Added support for BINBYTES8 opcode in Python implementation of | Serhiy Storchaka | 2015-09-29 | 1 | -0/+20 | |
|\ \ | |/ | | | | | | | unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8 opcodes no longer silently ignored on 32-bit platforms in C implementation. | |||||
| * | Issue #25262. Added support for BINBYTES8 opcode in Python implementation of | Serhiy Storchaka | 2015-09-29 | 1 | -0/+20 | |
| | | | | | | | | | | unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8 opcodes no longer silently ignored on 32-bit platforms in C implementation. | |||||
* | | Added additional unpickling tests. | Serhiy Storchaka | 2015-09-29 | 1 | -37/+229 | |
|\ \ | |/ | ||||||
| * | Added additional unpickling tests. | Serhiy Storchaka | 2015-09-29 | 1 | -37/+229 | |
| | | ||||||
* | | Moved unpickling tests with prepickled data to separate class. | Serhiy Storchaka | 2015-09-29 | 1 | -209/+215 | |
|\ \ | |/ | ||||||
| * | Moved unpickling tests with prepickled data to separate class. | Serhiy Storchaka | 2015-09-29 | 1 | -209/+215 | |
| | | ||||||
* | | merge 3.4 | Benjamin Peterson | 2015-07-02 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | use correct __new__ method (closes #24552) | Benjamin Peterson | 2015-07-02 | 1 | -1/+1 | |
| | | ||||||
* | | merge 3.4 (#24552) | Benjamin Peterson | 2015-07-02 | 1 | -0/+12 | |
|\ \ | |/ | ||||||
| * | fix use after free (closes #24552) | Benjamin Peterson | 2015-07-02 | 1 | -0/+12 | |
| | | ||||||
* | | Issue #23611: Serializing more "lookupable" objects (such as unbound methods | Serhiy Storchaka | 2015-03-31 | 1 | -4/+15 | |
| | | | | | | | | 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 | -1/+48 | |
|\ \ | |/ | | | | | | | | | | | | | 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 #18473: Fixed 2to3 and 3to2 compatible pickle mappings. | Serhiy Storchaka | 2015-03-31 | 1 | -1/+48 | |
| | | | | | | | | | | | | | | | | 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. | |||||
* | | Use pickled data compatible with Python 2 for testing protocols 0-2. | Serhiy Storchaka | 2015-02-15 | 1 | -216/+217 | |
|\ \ | |/ | ||||||
| * | Use pickled data compatible with Python 2 for testing protocols 0-2. | Serhiy Storchaka | 2015-02-15 | 1 | -216/+217 | |
| | | ||||||
* | | Issue #23094: Fixed readline with frames in Python implementation of pickle. | Serhiy Storchaka | 2015-01-26 | 1 | -0/+8 | |
|\ \ | |/ | ||||||
| * | Issue #23094: Fixed readline with frames in Python implementation of pickle. | Serhiy Storchaka | 2015-01-26 | 1 | -0/+8 | |
| | | ||||||
* | | Issue #22783: Pickling now uses the NEWOBJ opcode instead of the NEWOBJ_EX | Serhiy Storchaka | 2014-12-16 | 1 | -11/+65 | |
| | | | | | | | | opcode if possible. | |||||
* | | Fix uninitialized variable after #22676. | Antoine Pitrou | 2014-12-01 | 1 | -0/+21 | |
|/ | ||||||
* | Issue #22775: Fixed unpickling of http.cookies.SimpleCookie with protocol 2 | Serhiy Storchaka | 2014-11-02 | 1 | -1/+1 | |
| | | | | and above. Patch by Tim Graham. | |||||
* | Issue #19886: Use better estimated memory requirements for bigmem tests. | Serhiy Storchaka | 2014-01-10 | 1 | -7/+5 | |
|\ | | | | | | | Incorrect requirements can cause memory swapping. | |||||
| * | Issue #19886: Use better estimated memory requirements for bigmem tests. | Serhiy Storchaka | 2014-01-10 | 1 | -7/+5 | |
| | | | | | | | | Incorrect requirements can cause memory swapping. | |||||
* | | Issue #19648: implement empty tests in pickletester. Patch by Gennadiy Zlobin. | Antoine Pitrou | 2013-12-28 | 1 | -2/+10 | |
| | | ||||||
* | | Issue #6784: Strings from Python 2 can now be unpickled as bytes objects. | Alexandre Vassalotti | 2013-12-07 | 1 | -1/+29 | |
| | | | | | | | | | | | | | | 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 #19881: Fix bad pickling of large bytes in cpickle. | Alexandre Vassalotti | 2013-12-06 | 1 | -21/+54 | |
| | | ||||||
* | | Issue #19800: make the pickle framing tests more precise. | Antoine Pitrou | 2013-12-03 | 1 | -0/+22 | |
| | | ||||||
* | | Fix #19834: merge with 3.3. | Walter Doerwald | 2013-12-02 | 1 | -0/+80 | |
|\ \ | |/ |