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.

Author Joshua.Landau
Recipients Joshua.Landau, docs@python
Date 2014-05-21.06:39:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400654359.7.0.699720681212.issue21547@psf.upfronthosting.co.za>
In-reply-to
Content
In the docs for 2.x about the formatting syntax:

    https://docs.python.org/2/library/string.html#format-string-syntax

it says

    "Two conversion flags are currently supported: '!s' which calls str() on the value, and '!r' which calls repr()."

but for unicode formatters, '!s' calls unicode() instead.

See http://stackoverflow.com/questions/23773816/why-python-str-format-doesnt-call-str for the question that found this.
History
Date User Action Args
2014-05-21 06:39:20Joshua.Landausetrecipients: + Joshua.Landau, docs@python
2014-05-21 06:39:19Joshua.Landausetmessageid: <1400654359.7.0.699720681212.issue21547@psf.upfronthosting.co.za>
2014-05-21 06:39:19Joshua.Landaulinkissue21547 messages
2014-05-21 06:39:18Joshua.Landaucreate