Issue 4286: Discrepancy in format string documentation (original) (raw)
Issue4286
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) * ![]() |
Date: 2008-11-09 01:43 |
Thanks for the report! Fixed in r67174. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:41 | admin | set | github: 48536 |
2008-11-09 01:43:15 | benjamin.peterson | set | status: open -> closedresolution: fixedmessages: + nosy: + benjamin.peterson |
2008-11-09 01:28:23 | dlfjessup | create |