[issue40780] str.format() handles trailing zeros inconsistently in “general” format

2020-05-26 Thread David Chambers
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

[issue19238] Misleading explanation of fill and align in format_spec

2013-11-10 Thread David Chambers
David Chambers added the comment: These commits contain a typo: s/preceeded/preceded/ -- ___ Python tracker <http://bugs.python.org/issue19238> ___ ___ Python-bug

[issue19238] Misleading explanation of fill and align in format_spec

2013-10-12 Thread David Chambers
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

[issue19175] Erroneous reference to "integer" in format string grammar

2013-10-05 Thread David Chambers
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&#x

[issue7132] Regexp: capturing groups in repetitions

2010-04-01 Thread David Chambers
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