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 serhiy.storchaka
Recipients barry, davin, pitrou, r.david.murray, serhiy.storchaka, yselivanov
Date 2017-11-28.17:17:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511889474.38.0.213398074469.issue32157@psf.upfronthosting.co.za>
In-reply-to
Content
It is common to use quotes around %s. If the formatted argument is a string this will produce a string in qoutes, that look as a string literal in Python and other programming languages or just as a quoted string in English. But if quotes surround %r this looks like error. If the argument is a string this will lead to doubling qoutes. If its repr is in the form <...>, the angular parenthesis serve a role of qoutes, and additional qoutes are not needed.

PR 4582 removes qoutes around %r and {!r} in format strings.
History
Date User Action Args
2017-11-28 17:17:54serhiy.storchakasetrecipients: + serhiy.storchaka, barry, pitrou, r.david.murray, yselivanov, davin
2017-11-28 17:17:54serhiy.storchakasetmessageid: <1511889474.38.0.213398074469.issue32157@psf.upfronthosting.co.za>
2017-11-28 17:17:54serhiy.storchakalinkissue32157 messages
2017-11-28 17:17:54serhiy.storchakacreate