[Python-checkins] r77570 - python/trunk/Objects/stringlib/README.txt

georg.brandl python-checkins at python.org
Sun Jan 17 13:14:42 CET 2010


Author: georg.brandl
Date: Sun Jan 17 13:14:42 2010
New Revision: 77570

Log:
Add note about usage of STRINGLIB_EMPTY.

Modified:
   python/trunk/Objects/stringlib/README.txt

Modified: python/trunk/Objects/stringlib/README.txt
==============================================================================
--- python/trunk/Objects/stringlib/README.txt	(original)
+++ python/trunk/Objects/stringlib/README.txt	Sun Jan 17 13:14:42 2010
@@ -13,7 +13,8 @@
 
 STRINGLIB_EMPTY
 
-    a PyObject representing the empty string
+    a PyObject representing the empty string, only to be used if
+    STRINGLIB_MUTABLE is 0
 
 Py_ssize_t STRINGLIB_LEN(PyObject*)
 
@@ -31,9 +32,9 @@
 
 int STRINGLIB_CHECK_EXACT(PyObject *)
 
-    returns true if the object is an instance of our type, not a subclass.
+    returns true if the object is an instance of our type, not a subclass
 
 STRINGLIB_MUTABLE
 
-    Must be 0 or 1 to tell the cpp macros in stringlib code if the object
-    being operated on is mutable or not.
+    must be 0 or 1 to tell the cpp macros in stringlib code if the object
+    being operated on is mutable or not


More information about the Python-checkins mailing list