This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Discrepancy in format string documentation
Type: Stage:
Components: Documentation Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: benjamin.peterson, dlfjessup, georg.brandl
Priority: normal Keywords:

Created on 2008-11-09 01:28 by dlfjessup, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg75648 - (view) Author: (dlfjessup) Date: 2008-11-09 01:28
In the documentation for Format Strings
(http://docs.python.org/dev/3.0/library/string.html#formatstrings), the
grammar has the following rule:

> conversion        ::=  "r" | "s"

However, the documentation later reads:

> Three conversion flags are currently supported: '!s' which calls str()
on the value, '!r' which calls repr() and '!a' which calls ascii().

This implies that the correct rule for the grammar is:

> conversion        ::=  "a" | "r" | "s"
msg75650 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-11-09 01:43
Thanks for the report! Fixed in r67174.
History
Date User Action Args
2022-04-11 14:56:41adminsetgithub: 48536
2008-11-09 01:43:15benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg75650
nosy: + benjamin.peterson
2008-11-09 01:28:23dlfjessupcreate