Commit 123abb03 authored by Eli Bendersky's avatar Eli Bendersky

Issue #11634: Remove misleading paragraph from a comment

parent f66362ee
...@@ -32,10 +32,6 @@ static PyObject *interned; ...@@ -32,10 +32,6 @@ static PyObject *interned;
#define PyStringObject_SIZE (offsetof(PyStringObject, ob_sval) + 1) #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 For PyString_FromString(), the parameter `str' points to a null-terminated
string containing exactly `size' bytes. string containing exactly `size' bytes.
...@@ -52,8 +48,8 @@ static PyObject *interned; ...@@ -52,8 +48,8 @@ static PyObject *interned;
The PyObject member `op->ob_size', which denotes the number of "extra The PyObject member `op->ob_size', which denotes the number of "extra
items" in a variable-size object, will contain the number of bytes items" in a variable-size object, will contain the number of bytes
allocated for string data, not counting the null terminating character. It allocated for string data, not counting the null terminating character.
is therefore equal to the equal to the `size' parameter (for It is therefore equal to the `size' parameter (for
PyString_FromStringAndSize()) or the length of the string in the `str' PyString_FromStringAndSize()) or the length of the string in the `str'
parameter (for PyString_FromString()). parameter (for PyString_FromString()).
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment