David Hirschfield <davidh at ilm.com> 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: http://cr.yp.to/proto/netstrings.txt