From: Mark H. <ma...@hy...> - 2006-10-24 17:39:47
|
On Tue, 24, Oct, 2006 at 10:31:30AM -0600, Travis Oliphant spoke thus.. > The basic problem is that the longfloat type is not very=20 > cross-platform. The functionality depends on your C-compiler /=20 > platform when a long double is specified as the type. I suspect it=20 > doesn't work well with all compilers. In particular gcc 3.3 on apple I= =20 > know has trouble with the long double type. Ah. I've just realised that we're using a MacPython build compiled with gcc-3.3 but our default compiler is 4.0.1. This could be causing an issue. Let me try building the extension with gcc-3.3 and, if I can find one, upgrading python to a version compiled with 4.0 (I really don't want to have to do a framework python build from source though). > Please show us what N.array([1000],dtype=3DN.longfloat).itemsize is? Python 2.4.1 (#2, Mar 31 2005, 00:05:10) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> numpy.__version__ '1.0.dev3390' >>> numpy.array([1000],dtype=3Dnumpy.longfloat).itemsize 16 Cheers, Mark --=20 Mark Hymers <mark at hymers dot org dot uk> "I once absent-mindedly ordered Three Mile Island dressing in a restaurant and, with great presence of mind, they brought Thousand Island Dressing and a bottle of chili sauce." Terry Pratchett, alt.fan.pratchett |