A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-July/112546.html below:

[Python-Dev] [Python-checkins] cpython: Issue #11049: adding some tests to test.support

[Python-Dev] [Python-checkins] cpython: Issue #11049: adding some tests to test.supportNick Coghlan ncoghlan at gmail.com
Wed Jul 27 02:41:34 CEST 2011
On Wed, Jul 27, 2011 at 12:10 AM, Éric Araujo <merwok at netwok.org> wrote:
> Le 26/07/2011 15:30, Antoine Pitrou a écrit :
>> Actually, you want %a for non-ASCII messages to be escaped.
>
> Thanks for the reminder, I should use more %a instead of %r.  In the
> packaging code however, we can’t, given that we want to backport.
>
>> (however, there's hardly any reason to worry about it when it comes to
>> stdlib module names)
>
> I lacked context to see that.  If the code in question only ever handles
> stdlib modules, then okay.

The other reason to use %r is to get the enclosing quotes in the
displayed message. That reason applies even in cases like this where
the escaping aspect isn't a concern.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4