Two spaces between each section
This commit is contained in:
parent
4bb3cc5475
commit
493a3a6972
|
@ -18,6 +18,7 @@ arbitrary objects to printable ASCII strings for debugging and logging.
|
||||||
For Python 3000, a wider range of characters, based on the Unicode
|
For Python 3000, a wider range of characters, based on the Unicode
|
||||||
standard, should be considered 'printable'.
|
standard, should be considered 'printable'.
|
||||||
|
|
||||||
|
|
||||||
Motivation
|
Motivation
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
@ -59,6 +60,7 @@ Python 3000, so printing an image to the console won't mess it up.
|
||||||
|
|
||||||
This issue was once discussed by Hye-Shik Chang [1]_ , but was rejected.
|
This issue was once discussed by Hye-Shik Chang [1]_ , but was rejected.
|
||||||
|
|
||||||
|
|
||||||
Specification
|
Specification
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
@ -79,6 +81,7 @@ Specification
|
||||||
- Set the Unicode error-handler for sys.stdout and sys.stderr to
|
- Set the Unicode error-handler for sys.stdout and sys.stderr to
|
||||||
'backslashreplace' by default.
|
'backslashreplace' by default.
|
||||||
|
|
||||||
|
|
||||||
Rationale
|
Rationale
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
@ -95,6 +98,7 @@ without raising UnicodeEncodeError. For example, if your default
|
||||||
encoding is ASCII, ``print('¢')`` will prints '\\xa2'. If your encoding
|
encoding is ASCII, ``print('¢')`` will prints '\\xa2'. If your encoding
|
||||||
is ISO-8859-1, '' will be printed.
|
is ISO-8859-1, '' will be printed.
|
||||||
|
|
||||||
|
|
||||||
Printable characters
|
Printable characters
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
@ -118,6 +122,7 @@ characters as follows.
|
||||||
* Zs (Separator, Space) other than ASCII space('\\x20'). Characters in
|
* Zs (Separator, Space) other than ASCII space('\\x20'). Characters in
|
||||||
this category should be escaped to avoid ambiguity.
|
this category should be escaped to avoid ambiguity.
|
||||||
|
|
||||||
|
|
||||||
Alternate Solutions
|
Alternate Solutions
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
@ -176,6 +181,7 @@ following function.
|
||||||
def repr_ascii(obj):
|
def repr_ascii(obj):
|
||||||
return str(repr(obj).encode("ASCII", "backslashreplace"), "ASCII")
|
return str(repr(obj).encode("ASCII", "backslashreplace"), "ASCII")
|
||||||
|
|
||||||
|
|
||||||
Reference Implementation
|
Reference Implementation
|
||||||
========================
|
========================
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue