[Python-Dev] Iterating over marshal/pickle
barry at python.org
Mon Oct 9 18:01:40 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
On Oct 9, 2006, at 11:28 AM, Fredrik Lundh wrote:
>> 1. Does this seem like a reasonable addition to the standard library?
> I cannot remember ever doing this, or seeing anyone except Perforce
> doing this, and it'll only save you a few lines of code every other
> or so, so my answer is definitely no.
FWIW, Mailman uses pickle files with multiple pickled objects in
them, to implement its queue files. We first dump the Message
object, followed by a dictionary of metadata. OTOH, I know there's
only two objects in the pickle, so I don't have to iterate over it; I
just load the message and then load the dictionary.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
-----END PGP SIGNATURE-----
More information about the Python-Dev