[issue13433] String format documentation contains error regarding %g
Christian Iversen
report at bugs.python.org
Sat Nov 26 10:17:01 CET 2011
Christian Iversen <ci at sikkerhed.org> added the comment:
Terry, the %g format always trims trailing zeroes, so you'd have to try with a number that doesn't end in zero.
I had to make a re-implementation of format for javascript:
http://paste.pocoo.org/show/513078/
If you look at the %g case, you can clearly see how much more complex and different it is, not that that itself indicates a bug. But it is different for sure :)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13433>
_______________________________________
More information about the Python-bugs-list
mailing list