[Python-checkins] r63903 - peps/trunk/pep-3138.txt

guido.van.rossum python-checkins at python.org
Tue Jun 3 00:23:42 CEST 2008


Author: guido.van.rossum
Date: Tue Jun  3 00:23:23 2008
New Revision: 63903

Log:
Correct PY_UNICODE_ISPRINTABLE to Py_UNICODE_ISPRINTABLE.


Modified:
   peps/trunk/pep-3138.txt

Modified: peps/trunk/pep-3138.txt
==============================================================================
--- peps/trunk/pep-3138.txt	(original)
+++ peps/trunk/pep-3138.txt	Tue Jun  3 00:23:23 2008
@@ -74,7 +74,7 @@
 Specification
 =============
 
-- Add a new function to the Python C API ``int PY_UNICODE_ISPRINTABLE
+- Add a new function to the Python C API ``int Py_UNICODE_ISPRINTABLE
  (Py_UNICODE ch)``. This function returns 0 if repr() should escape the
  Unicode character ``ch``; otherwise it returns 1. Characters that should
  be escaped are defined in the Unicode character database as:
@@ -98,7 +98,7 @@
  * Convert leading surrogate pair characters without trailing character
    (0xd800-0xdbff, but not followed by 0xdc00-0xdfff) to '\\uXXXX'.
 
- * Convert non-printable characters(PY_UNICODE_ISPRINTABLE() returns 0)
+ * Convert non-printable characters(Py_UNICODE_ISPRINTABLE() returns 0)
    to 'xXX', '\\uXXXX' or '\\U00xxxxxx'.
 
  * Backslash-escape quote characters (apostrophe, 0x27) and add quote
@@ -120,7 +120,7 @@
 - Add an ``isprintable()`` method to the string type. ``str.isprintable()``
  returns False if repr() should escape any character in the string;
  otherwise returns True. The ``isprintable()`` method calls the
- `` PY_UNICODE_ISPRINTABLE()`` function internally.
+ `` Py_UNICODE_ISPRINTABLE()`` function internally.
 
 
 Rationale


More information about the Python-checkins mailing list