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/112556.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.support [Python-Dev] [Python-checkins] cpython: Issue #11049: adding some tests to test.supportEli Bendersky eliben at gmail.com
Wed Jul 27 15:31:54 CEST 2011
> > I would use %r instead of %s for both fields here.  Non-ASCII characters
> > and unseen whitespace are at least two reasons to overuse %r in
> > debug/error messages instead of %s.
>
> Actually, you want %a for non-ASCII messages to be escaped.
> (however, there's hardly any reason to worry about it when it comes to
> stdlib module names)
>

I wasn't aware of '%a' at all? It doesn't appear to be documented, and
Python 2.6 doesn't support it:

    ValueError: unsupported format character 'a' (0x61) at index 1

If it's new, it should at least be documented in library/stdtypes with the
other formatting operations.

Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110727/aa8f9fe1/attachment.html>
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