[Python-checkins] cpython (2.7): Issue #11634: Remove misleading paragraph from a comment

eli.bendersky python-checkins at python.org
Thu Mar 24 21:56:49 CET 2011


http://hg.python.org/cpython/rev/44749e501982
changeset:   68907:44749e501982
branch:      2.7
parent:      68856:24179f82b7de
user:        Eli Bendersky <eliben at gmail.com>
date:        Thu Mar 24 22:38:25 2011 +0200
summary:
  Issue #11634: Remove misleading paragraph from a comment

files:
  Objects/stringobject.c |  8 ++------
  1 files changed, 2 insertions(+), 6 deletions(-)


diff --git a/Objects/stringobject.c b/Objects/stringobject.c
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -32,10 +32,6 @@
 #define PyStringObject_SIZE (offsetof(PyStringObject, ob_sval) + 1)
 
 /*
-   For both PyString_FromString() and PyString_FromStringAndSize(), the
-   parameter `size' denotes number of characters to allocate, not counting any
-   null terminating character.
-
    For PyString_FromString(), the parameter `str' points to a null-terminated
    string containing exactly `size' bytes.
 
@@ -52,8 +48,8 @@
 
    The PyObject member `op->ob_size', which denotes the number of "extra
    items" in a variable-size object, will contain the number of bytes
-   allocated for string data, not counting the null terminating character.  It
-   is therefore equal to the equal to the `size' parameter (for
+   allocated for string data, not counting the null terminating character.
+   It is therefore equal to the `size' parameter (for
    PyString_FromStringAndSize()) or the length of the string in the `str'
    parameter (for PyString_FromString()).
 */

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list