A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2014-April/133745.html below:

[Python-Dev] pickle self-delimiting

[Python-Dev] pickle self-delimiting [Python-Dev] pickle self-delimitingAntoine Pitrou solipsis at pitrou.net
Tue Apr 1 20:35:41 CEST 2014
On Tue, 1 Apr 2014 19:29:38 +0100
Charles-François Natali <cf.natali at gmail.com> wrote:
> Hi,
> 
> Unless I'm mistaken, pickle's documentation doesn't mention that the pickle
> wire-format is self-delimiting. Is there any reason why it's not documented?

No reason AFAIK. However, the fact that it is self-delimited is implicit
in the fact that "Bytes past the pickled object’s representation are
ignored": https://docs.python.org/dev/library/pickle.html#pickle.load

Also, note that protocol 4 now features a length-prefix framing to
improve buffering performance with arbitrary streams.

Regards

Antoine.


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4