Hi, In python 2.6, there have been some effort to make float formatting more consistent between platforms, which is nice. Unfortunately, there is still one corner case, for example on windows:
print a -> print 'inf' print '%f' % a -> print '1.#INF' The difference being that in the second case, the formatting is done in floatformat.c (in stringobject.c), whereas in the first case, it is done in format_float (in floatobject.c). Shouldn't both functions be calling the same underlying implementation, to avoid those inconsistencies ? thanks, David _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com