Out of memory generating using SHA

Alex cut_me_out at hotmail.com
Sun Aug 27 16:39:50 EDT 2000


> I need to generate SHA CRC-codes for large files, larger than
> available memory. The default implementation I've seen seem to read
> the entire file into memory. Is there a way to read chunks of the file
> instead?

Yes.  See http://www.python.org/doc/current/lib/module-sha.html#l2h-2469
for details.

The example in http://www.python.org/doc/current/lib/module-md5.html
might help, too.

Alex.

-- 
I'm not an outlier; I just haven't found my distribution yet.  
--- Ronan Conroy

To succeed in the world it is not enough to be stupid; you must also be
well-mannered. -- Voltaire




More information about the Python-list mailing list