On Oct 25, 8:19 am, David Kirkby <david.kir...@onetel.net> wrote:
> Getting a checksum of each doctest would be easy. I suggest we use:
>
> $ cksum sometest.py  | awk '{print $1}'
>
> because that will be totally portable across all platforms. 'cksum' is
> 32-bit checksum that's part of the POSIX standard and the algorithm is
> defined. So there's no worry about whether one has an md5 program, and
> if so what its called.

http://docs.python.org/library/hashlib.html#module-hashlib

Python's standard library "hashlib" contains both MD5 and SHA1 Message
Digests.

Their advantage over the checksum (CRC) algorithm, is that the output
digest changes dramatically when only 1 input bit changes.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to