New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

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.

----------
components: Library (Lib)
messages: 307146
nosy: barry, davin, pitrou, r.david.murray, serhiy.storchaka, yselivanov
priority: normal
severity: normal
stage: patch review
status: open
title: Remove explicit quotes around %r and {!r}
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32157>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to