New submission from David Chambers :
According to
https://docs.python.org/3/library/string.html#format-specification-mini-language,
“insignificant trailing zeros are removed from the significand” when 'g' is
specified. I encountered a situation in which a trailing zero is n
David Chambers added the comment:
These commits contain a typo: s/preceeded/preceded/
--
___
Python tracker
<http://bugs.python.org/issue19238>
___
___
Python-bug
New submission from David Chambers:
>From http://docs.python.org/3/library/string.html#formatspec:
> The presence of a fill character is signaled by the character
> following it, which must be one of the alignment options. If the
> second character of format_spec is not a valid alig
New submission from David Chambers:
I first raised this issue on Stack Overflow:
http://stackoverflow.com/questions/19203194
The [replacement field grammar][1] states that an [integer][2] is a valid
field_name, but this is inaccurate:
>>> '{0}'.format('zero
David Chambers added the comment:
I would find this functionality very useful. While I agree that it's often
simpler to extract the relevant information in several steps, there are
situations in which I'd prefer to do it all in one go.
The application I'm writing at the