TypeError: can't pickle HASH objects?

Aaron "Castironpi" Brady castironpi at gmail.com
Thu Oct 2 04:22:52 EDT 2008


On Oct 2, 2:44 am, est <electronix... at gmail.com> wrote:
> On Oct 2, 1:51 pm, "James Mills" <prolo... at shortcircuit.net.au> wrote:
>
> > On Thu, Oct 2, 2008 at 3:34 PM, est <electronix... at gmail.com> wrote:
> > > wow. It's giga-size file. I need stream reading it, md5 it. It may
> > > break for a while.
>
> > So use generators and consume the stream ?
>
> > --JamesMills
>
> > --
> > --
> > -- "Problems are solved by method"
>
> no, I need to serialize half-finished digest, not file stream.
>
> Anyone got solution?

I am looking at '_hashopenssl.c'.  If you can find the implementation
of EVP_DigestUpdate, I'll give it a shot to help you write a ctypes
hack to store and write its state.



More information about the Python-list mailing list