summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-09-30 12:02:57 (GMT)
committerGeorg Brandl <georg@python.org>2006-09-30 12:02:57 (GMT)
commit44a7b3a7658f2f540cab5316d74acce05d711554 (patch)
tree6fa816c901d517485212dd28bc3f099ef89750d2 /Doc/api
parenta92979a1db11ca42e78390fead218afbefb61587 (diff)
downloadcpython-44a7b3a7658f2f540cab5316d74acce05d711554.zip
cpython-44a7b3a7658f2f540cab5316d74acce05d711554.tar.gz
cpython-44a7b3a7658f2f540cab5316d74acce05d711554.tar.bz2
Bug #1546052: clarify that PyString_FromString(AndSize) copies the
string pointed to by its parameter.
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/concrete.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex
index 34221ad..764c6aa 100644
--- a/Doc/api/concrete.tex
+++ b/Doc/api/concrete.tex
@@ -602,15 +602,15 @@ parameter and are called with a non-string parameter.
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyString_FromString}{const char *v}
- Return a new string object with the value \var{v} on success, and
- \NULL{} on failure. The parameter \var{v} must not be \NULL{}; it
- will not be checked.
+ Return a new string object with a copy of the string \var{v} as value
+ on success, and \NULL{} on failure. The parameter \var{v} must not be
+ \NULL{}; it will not be checked.
\end{cfuncdesc}
\begin{cfuncdesc}{PyObject*}{PyString_FromStringAndSize}{const char *v,
Py_ssize_t len}
- Return a new string object with the value \var{v} and length
- \var{len} on success, and \NULL{} on failure. If \var{v} is
+ Return a new string object with a copy of the string \var{v} as value
+ and length \var{len} on success, and \NULL{} on failure. If \var{v} is
\NULL{}, the contents of the string are uninitialized.
\end{cfuncdesc}