[issue4286] Discrepancy in format string documentation

dlfjessup report at bugs.python.org
Sun Nov 9 02:28:25 CET 2008

New submission from dlfjessup <dljessup at gmail.com>:

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"

assignee: georg.brandl
components: Documentation
messages: 75648
nosy: dlfjessup, georg.brandl
severity: normal
status: open
title: Discrepancy in format string documentation
versions: Python 3.0

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list