Checksum routine - new to Python

Guido van Rossum guido at python.org
Fri May 19 22:46:13 EDT 2000


Thomas Wouters <thomas at xs4all.net> writes:

> On Fri, May 19, 2000 at 07:29:49AM +0200, Peter Schneider-Kamp wrote:
> 
> > 3) binascii.crc32:
> > obviously a crc32 algorithm with a nice documentation and
> > some ISO blur. I think that'd be the way to go.
> 
> Except that it seems to be new in Python 1.6. At least, my standard-redhat
> python 1.5.2 doesn't have it.

Correct.  The code in binascii was added to support zipfile.py, a new
module in 1.6 that can read and write (some) zip files.

Note that this is the same crc32 algorithm as the one in zlib!  (Dunno
about which is faster, but I wouldn't be surprised if they both derive
from the same code as well.)

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-list mailing list