
29 Jun
2003
29 Jun
'03
6 p.m.
In article 3EFF188F.3020607@lemburg.com, M.-A. Lemburg mal@lemburg.com writes
Robin Becker wrote:
Are there standard ways to determine things like wordlength etc in distutils?
I suppose one can use sys.maxint, but I thought this might be a standard kind of requirement now that we're slipping from 32 to 64 bits.
I'd use the struct module for these things.
So we assume struct units are 8 bits and then use calcsize("i")*8 as the wordlength.
--
Robin Becker