Re: TypeError: can't pickle HASH objects?

2008-10-02 Thread est
On Oct 2, 1:51 pm, James Mills [EMAIL PROTECTED] wrote: On Thu, Oct 2, 2008 at 3:34 PM, est [EMAIL PROTECTED] 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

Re: TypeError: can't pickle HASH objects?

2008-10-02 Thread Aaron Castironpi Brady
On Oct 2, 2:44 am, est [EMAIL PROTECTED] wrote: On Oct 2, 1:51 pm, James Mills [EMAIL PROTECTED] wrote: On Thu, Oct 2, 2008 at 3:34 PM, est [EMAIL PROTECTED] 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

Re: TypeError: can't pickle HASH objects?

2008-10-02 Thread est
On Oct 2, 4:22 pm, Aaron \Castironpi\ Brady [EMAIL PROTECTED] wrote: On Oct 2, 2:44 am, est [EMAIL PROTECTED] wrote: On Oct 2, 1:51 pm, James Mills [EMAIL PROTECTED] wrote: On Thu, Oct 2, 2008 at 3:34 PM, est [EMAIL PROTECTED] wrote: wow. It's giga-size file. I need stream reading

Re: TypeError: can't pickle HASH objects?

2008-10-02 Thread Gabriel Genellina
:\Python25\lib\pickle.py, line 224, in dump self.save(obj) File C:\Python25\lib\pickle.py, line 306, in save rv = reduce(self.proto) File C:\Python25\lib\copy_reg.py, line 69, in _reduce_ex raise TypeError, can't pickle %s objects % base.__name__ TypeError: can't pickle HASH objects Why

Re: TypeError: can't pickle HASH objects?

2008-10-02 Thread Aaron Castironpi Brady
On Oct 2, 4:03 am, est [EMAIL PROTECTED] wrote: On Oct 2, 4:22 pm, Aaron \Castironpi\ Brady [EMAIL PROTECTED] wrote: On Oct 2, 2:44 am, est [EMAIL PROTECTED] wrote: On Oct 2, 1:51 pm, James Mills [EMAIL PROTECTED] wrote: On Thu, Oct 2, 2008 at 3:34 PM, est [EMAIL PROTECTED] wrote:

Re: TypeError: can't pickle HASH objects?

2008-10-02 Thread est
TypeError, can't pickle %s objects % base.__name__ TypeError: can't pickle HASH objects Why can't I pickle a md5 object? Is it because md5 algorithm needs to read 512-bits at a time? I need to md5() some stream, pause(python.exe quits), and resume later.  It seems that the md5 and hashlib

TypeError: can't pickle HASH objects?

2008-10-01 Thread est
:\Python25\lib\pickle.py, line 306, in save rv = reduce(self.proto) File C:\Python25\lib\copy_reg.py, line 69, in _reduce_ex raise TypeError, can't pickle %s objects % base.__name__ TypeError: can't pickle HASH objects Why can't I pickle a md5 object? Is it because md5 algorithm needs

Re: TypeError: can't pickle HASH objects?

2008-10-01 Thread mdsherry
\pickle.py, line 224, in dump     self.save(obj)   File C:\Python25\lib\pickle.py, line 306, in save     rv = reduce(self.proto)   File C:\Python25\lib\copy_reg.py, line 69, in _reduce_ex     raise TypeError, can't pickle %s objects % base.__name__ TypeError: can't pickle HASH objects Why

Re: TypeError: can't pickle HASH objects?

2008-10-01 Thread Aaron Castironpi Brady
\pickle.py, line 224, in dump     self.save(obj)   File C:\Python25\lib\pickle.py, line 306, in save     rv = reduce(self.proto)   File C:\Python25\lib\copy_reg.py, line 69, in _reduce_ex     raise TypeError, can't pickle %s objects % base.__name__ TypeError: can't pickle HASH objects Why

Re: TypeError: can't pickle HASH objects?

2008-10-01 Thread est
, can't pickle %s objects % base.__name__ TypeError: can't pickle HASH objects Why can't I pickle a md5 object? Is it because md5 algorithm needs to read 512-bits at a time? I need to md5() some stream, pause(python.exe quits), and resume later.  It seems that the md5 and hashlib in  std

Re: TypeError: can't pickle HASH objects?

2008-10-01 Thread James Mills
On Thu, Oct 2, 2008 at 3:34 PM, est [EMAIL PROTECTED] 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 --

Re: TypeError: can't pickle HASH objects?

2008-10-01 Thread electronixtar
James Mills wrote: On Thu, Oct 2, 2008 at 3:34 PM, est [EMAIL PROTECTED] 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 it's not the stream's problem. it the md5 module. --