unsigned 32 bit arithmetic type?
robin at reportlab.com
Wed Oct 25 19:48:36 CEST 2006
> import numpy
> def CalcTableChecksum(Table, Length=None):
> tmp = numpy.array(Table,dtype=numpy.uint32)
> if Length == None: Length = tmp.size
> endptr = ((Length+3) & ~3) / 4
> return (tmp[0:endptr]).sum()
it's probably wonderful, but I don't think I can ask people to add numpy to the
list of requirements for reportlab :)
I used to love its predecessor Numeric, but it was quite large.
More information about the Python-list