[Python-Dev] test_coercion failing

Skip Montanaro skip@pobox.com (Skip Montanaro)
Wed, 21 Mar 2001 08:46:51 -0600 (CST)


    Tim> Everyone!  Run this program under current CVS:
    Tim> x = 0.0
    Tim> print "%.17g" % -x
    Tim> print "%+.17g" % -x

    Tim> What do you get?

% ./python
Python 2.1b2 (#2, Mar 21 2001, 08:43:16) 
[GCC 2.95.3 19991030 (prerelease)] on linux2
Type "copyright", "credits" or "license" for more information.
>>> x = 0.0
>>> print "%.17g" % -x
-0
>>> print "%+.17g" % -x
-0

% ldd ./python
        libpthread.so.0 => /lib/libpthread.so.0 (0x4001a000)
        libdl.so.2 => /lib/libdl.so.2 (0x4002d000)
        libutil.so.1 => /lib/libutil.so.1 (0x40031000)
        libm.so.6 => /lib/libm.so.6 (0x40034000)
        libc.so.6 => /lib/libc.so.6 (0x40052000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

libc appears to actually be GNU libc 2.1.3.