Re: [Numpy-discussion] how to ask numpy what bit version it is running (32/64)

2010-10-19 Thread Mark Wiebe
What about this as a possibility: >>> numpy.intp(0).itemsize == 8 True -Mark On Tue, Oct 19, 2010 at 7:11 PM, Vincent Davis wrote: > A little followup from the python list. I thought this was worth sharing > here. > > Quoting Ned Deily, n...@acm.org > > " > It looks better but , > unfortunately

Re: [Numpy-discussion] how to ask numpy what bit version it is running (32/64)

2010-10-19 Thread Vincent Davis
A little followup from the python list. I thought this was worth sharing here. Quoting Ned Deily, n...@acm.org " It looks better but , unfortunately, it doesn't work correctly on OS X where a universal build can have both 32-bit and 64-bit executables in the same file. $ arch -x86_64 /usr/local/

Re: [Numpy-discussion] how to ask numpy what bit version it is running (32/64)

2010-10-19 Thread Vincent Davis
On Tue, Oct 19, 2010 at 4:13 PM, Jonathan Rocher wrote: > Hi, > > If you directly want to know if it is a 32 or 64 bits, you can also use > import platform > print platform.architecture() > > Best, > Jonathan > > On Tue, Oct 19, 2010 at 5:09 PM, David Cournapeau > wrote: >> >> On Wed, Oct 20, 201

Re: [Numpy-discussion] how to ask numpy what bit version it is running (32/64)

2010-10-19 Thread Jonathan Rocher
Hi, If you directly want to know if it is a 32 or 64 bits, you can also use import platform print platform.architecture() Best, Jonathan On Tue, Oct 19, 2010 at 5:09 PM, David Cournapeau wrote: > On Wed, Oct 20, 2010 at 6:54 AM, Vincent Davis > wrote: > > What is the best/good way to know what

Re: [Numpy-discussion] how to ask numpy what bit version it is running (32/64)

2010-10-19 Thread David Cournapeau
On Wed, Oct 20, 2010 at 6:54 AM, Vincent Davis wrote: > What is the best/good way to know what version of numpy is running (32 > or 64 bit). import platform print platform.machine() > Showing my ignorance maybe but does it always match the python version > that is running, which can be ask/teste

[Numpy-discussion] how to ask numpy what bit version it is running (32/64)

2010-10-19 Thread Vincent Davis
What is the best/good way to know what version of numpy is running (32 or 64 bit). Showing my ignorance maybe but does it always match the python version that is running, which can be ask/tested using sys.maxint? -- Thanks Vincent Davis ___ NumPy-Discus