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 > cross-platform. The functionality depends on your C-compiler / > platform when a long double is specified as the type. I suspect it > doesn't work well with all compilers. In particular gcc 3.3 on apple I > 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=N.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=numpy.longfloat).itemsize 16 Cheers, Mark -- 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
signature.asc
Description: Digital signature
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion