Antoine Pitrou
91f4380ced
bpo-36785: PEP 574 implementation (GH-7076)
2019-05-26 17:10:09 +02:00
Krzysztof Wroblewski
488cfb78c8
Fix pickletools doc for NEWFALSE. (GH-9432)
...
Also make docs for NEWFALSE and NEWTRUE more consistent
with docs for other opcodes.
2018-09-22 18:13:53 +03:00
Olivier Grisel
3cd7c6e6eb
bpo-31993: Do not allocate large temporary buffers in pickle dump. ( #4353 )
...
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.
2018-01-06 17:18:54 +02:00
Serhiy Storchaka
3daaafb700
bpo-32037: Use the INT opcode for 32-bit integers in protocol 0 pickles. ( #4407 )
2017-11-16 09:44:43 +02:00
Jelle Zijlstra
5a4e3d8f9c
bpo-30174: Remove duplicate definition from pickletools ( #1301 )
...
There were two almost identical definitions of bytes1.
2017-04-27 19:05:26 +03:00
Serhiy Storchaka
5f1a5187f7
Use sequence repetition instead of bytes constructor with integer argument.
2016-09-11 14:41:02 +03:00
Martin Panter
1ce738e08f
Merge typo fixes from 3.5
2016-05-08 14:02:35 +00:00
Martin Panter
4c35964b76
Corrections for a/an in code comments and documentation
2016-05-08 13:53:41 +00:00
Benjamin Peterson
860c8a404a
merge 3.5 ( #25502 )
2015-10-28 23:15:22 -07:00
Benjamin Peterson
669ff66c32
remove duplicated imports ( closes #25502 )
2015-10-28 23:15:13 -07:00
Serhiy Storchaka
dbc517c2dd
Issue #25382 : pickletools.dis() now outputs implicit memo index for the
...
MEMOIZE opcode.
2015-10-13 21:20:14 +03:00
Serhiy Storchaka
5805ddeedb
Issue #25380 : Fixed protocol for the STACK_GLOBAL opcode in
...
pickletools.opcodes.
2015-10-13 21:12:32 +03:00
Serhiy Storchaka
05dadcfb28
Issue #19858 : pickletools.optimize() now aware of the MEMOIZE opcode, can
...
produce more compact result and no longer produces invalid output if input
data contains MEMOIZE opcodes together with PUT or BINPUT opcodes.
2014-12-16 18:00:56 +02:00
Alexandre Vassalotti
d05c9ff845
Issue #6784 : Strings from Python 2 can now be unpickled as bytes objects.
...
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.
2013-12-07 01:09:27 -08:00
Alexandre Vassalotti
02066d3fbd
Issue #19754 : Fix typo.
2013-12-01 16:31:49 -08:00
Alexandre Vassalotti
28d271ef6b
Issue #19754 : Make pickletools.optimize respect the frame size target.
2013-12-01 16:27:46 -08:00
Gregory P. Smith
057e58dc01
Fix test_pickletools.py doctest's on 32-bit platforms. I hate doctests.
2013-11-23 20:40:46 +00:00
Antoine Pitrou
c9dc4a2a8a
Issue #17810 : Implement PEP 3154, pickle protocol 4.
...
Most of the work is by Alexandre.
2013-11-23 18:59:12 +01:00
Serhiy Storchaka
46e1ce214b
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 20:17:03 +03:00
Serhiy Storchaka
9594942716
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 19:40:23 +03:00
Ezio Melotti
9a3777e525
#18705 : merge with 3.3.
2013-08-17 15:53:55 +03:00
Ezio Melotti
30b9d5d3af
#18705 : fix a number of typos. Patch by Févry Thibault.
2013-08-17 15:50:46 +03:00
Alexandre Vassalotti
96d6a78ce0
Merge 3.3
2013-04-14 03:44:47 -07:00
Alexandre Vassalotti
8db89ca56c
Issue #16550 : Update the opcode descriptions of pickletools to use unsigned
...
integers where appropriate. Initial patch by Serhiy Storchaka.
2013-04-14 03:30:35 -07:00
Victor Stinner
765531d2d0
Issue #17516 : use comment syntax for comments, instead of multiline string
2013-03-26 01:11:54 +01:00