[Python-checkins] r62745 - peps/trunk/pep-3138.txt
benjamin.peterson
python-checkins at python.org
Tue May 6 00:30:15 CEST 2008
Author: benjamin.peterson
Date: Tue May 6 00:30:14 2008
New Revision: 62745
Log:
Two spaces between each section
Modified:
peps/trunk/pep-3138.txt
Modified: peps/trunk/pep-3138.txt
==============================================================================
--- peps/trunk/pep-3138.txt (original)
+++ peps/trunk/pep-3138.txt Tue May 6 00:30:14 2008
@@ -18,6 +18,7 @@
For Python 3000, a wider range of characters, based on the Unicode
standard, should be considered 'printable'.
+
Motivation
==========
@@ -59,6 +60,7 @@
This issue was once discussed by Hye-Shik Chang [1]_ , but was rejected.
+
Specification
=============
@@ -79,6 +81,7 @@
- Set the Unicode error-handler for sys.stdout and sys.stderr to
'backslashreplace' by default.
+
Rationale
=========
@@ -95,6 +98,7 @@
encoding is ASCII, ``print('¢')`` will prints '\\xa2'. If your encoding
is ISO-8859-1, '' will be printed.
+
Printable characters
--------------------
@@ -118,6 +122,7 @@
* Zs (Separator, Space) other than ASCII space('\\x20'). Characters in
this category should be escaped to avoid ambiguity.
+
Alternate Solutions
-------------------
@@ -176,6 +181,7 @@
def repr_ascii(obj):
return str(repr(obj).encode("ASCII", "backslashreplace"), "ASCII")
+
Reference Implementation
========================
More information about the Python-checkins
mailing list