Re: Determining 32 bit vs 64 bit Python and numpy

2009-05-25 Thread mmanns
On Mon, 25 May 2009 23:54:45 +0200 "Martin v. Löwis" wrote: > > I am looking for a robust, cross-platform way to determine if I am > > on a 32 bit or a 64 bit Python and if the numpy installation is > > also 32 bit or 64 bit. > > You can find out the size of a pointer with struct.calcsize("P") *

Re: Determining 32 bit vs 64 bit Python and numpy

2009-05-25 Thread Martin v. Löwis
> I am looking for a robust, cross-platform way to determine if I am on a > 32 bit or a 64 bit Python and if the numpy installation is also 32 bit > or 64 bit. You can find out the size of a pointer with struct.calcsize("P") * 8. Numpy will have the same configuration if you can import it. Regard

Determining 32 bit vs 64 bit Python and numpy

2009-05-25 Thread mmanns
Hi I am looking for a robust, cross-platform way to determine if I am on a 32 bit or a 64 bit Python and if the numpy installation is also 32 bit or 64 bit. I have googled a bit and found some platform specific solutions but nothing general. The solution should work with different versions of Py