Pickles
Grzegorz Chrupała
grzegorz at pithekos.net
Tue Oct 5 16:57:42 CEST 2004
On Tue 05 Oct 2004 09:05, Raphael Collet wrote:
> This is not very difficult, in fact. Simply use Pickle.pack and
> Pickle.unpack, and store the data in the file. The idea is to put
> something in the file in order to delimit the pickled value
> (otherwise Pickle.unpack might crash).
>
> Here is an idea for an implementation. F is assumed to be a file ...
Thanks! It's simple enough indeed and four bytes will be enough to
encode the size of most pickles :)
Cheers.
--
Grzegorz Chrupała
More information about the mozart-users
mailing list