diff options
author | Eli Bendersky <eliben@gmail.com> | 2011-03-24 22:38:25 +0200 |
---|---|---|
committer | Eli Bendersky <eliben@gmail.com> | 2011-03-24 22:38:25 +0200 |
commit | 72de205895d01ae6f461ae795af95094daf06fac (patch) | |
tree | 2ccff6aca052cc847ccd7701594920b3c915d9f4 | |
parent | f079c9bfbf8a1ce5eb9336a1723065d55c130ec6 (diff) | |
download | cpython-git-72de205895d01ae6f461ae795af95094daf06fac.tar.gz |
Issue #11634: Remove misleading paragraph from a comment
-rw-r--r-- | Objects/stringobject.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 0a7e78df6d..467de363f4 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -32,10 +32,6 @@ static PyObject *interned; #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 @@ static PyObject *interned; 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()). */ |