Sending binary pickled data through TCP

Paul Rubin http
Fri Oct 13 06:07:40 CEST 2006

David Hirschfield <davidh at> writes:
> Is there a reliable way to determine the byte count of some pickled
> binary data? Can I rely on len(<pickled data>) == bytes?

Huh?  Yes, of course len gives you the length.

As for the network representation, DJB proposes this format:

More information about the Python-list mailing list