[Baypiggies] newbie question - json as pickler

K. Richard Pixley rich at noir.com
Mon Feb 22 16:41:52 CET 2010


Aahz wrote:
> Just serialize a list of objects.
>   
My list isn't finite.  I'm trying to serialize a log of incoming 
messages.  It won't be finite until it's done and that may take days or 
weeks and may not all fit in memory.
>> I feel like I must be missing something here.  Does anyone else see it?   
>> Is there an obvious way to break up the byte stream?  Is there an easy  
>> way to tease the standard library coder into coding arbitrary objects?
>>     
> You do what pickle essentially does: serialize o.__dict__
>   
Thank you.  That's about what I'd come to on my own.  That or a suitable 
subset thereof.

--rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20100222/736a64c3/attachment.html>


More information about the Baypiggies mailing list