windows to linux pickled objects?

Fernando Pérez fperez528 at
Tue Nov 27 22:06:32 CET 2001

brueckd at wrote:

> Binary usually helps, but it can work against you too:
>>>> import pickle
>>>> len(pickle.dumps(5.0))
> 6
>>>> len(pickle.dumps(5.0, 1))
> 10
> -Dave

In very peculiar situations, yes (like if you are storing truncated 
data). But in the generic case, it will help.

As always, use what's generically good, and only if it's not enough 
look again. Optimize late, later, later...


More information about the Python-list mailing list