Checksum routine - new to Python

Guido van Rossum guido at python.org
Sat May 20 13:19:24 EDT 2000


> From: Peter Schneider-Kamp <petersc at stud.ntnu.no>

> Guido van Rossum wrote:
> > 
> > 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.)
> 
> Excuse me, but how can you be sure it is the same algorithm?
> As far as I can read the sources to zlibmodule.c it uses the
> function crc32 defined in zlib.h of the underlying platform.

> Now I would almost dare to bet that any sane system uses the
> standard algorithm in its zlib, but who can tell?

Zlib is not part of the platform, it's part of zlib, which is the same
sources everywhere.  Since zlib is intended to support a standardized
file format, you can bet their crc32 is the same everywhere!

> gotten-careful-about-inheriting-from-platform-behaviour-ly y'rs

It's not platform behavior.

> P.S.: Just being curious: Is there a problem with my arraymodule
>       patches for index,count,remove and pop?

Probably not, but I haven't had the time to look at them.

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




More information about the Python-list mailing list