unsigned 32 bit arithmetic type?
Robin Becker
robin at reportlab.com
Wed Oct 25 13:48:36 EDT 2006
sturlamolden wrote:
> 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.
--
Robin Becker
More information about the Python-list
mailing list