<div dir="ltr">> No reason AFAIK. However, the fact that it is self-delimited is implicit<br>> in the fact that "Bytes past the pickled object’s representation are<br>> ignored": <a href="https://docs.python.org/dev/library/pickle.html#pickle.load">https://docs.python.org/dev/library/pickle.html#pickle.load</a><div>
<br></div><div>I find this sentence worrying: it could lead one to think that load() could read more bytes than the expected object representation size: this would make pickle actually non self-delimiting, and could lead to problems when reading e.g. from a socket, since an extraneous read() could block.</div>
<div><br></div><div>I think it's worth making it clear in the doc, I'll open an issue on the tracker.</div></div>