[Python-checkins] r52079 - in python/branches/release25-maint: Doc/api/concrete.tex Misc/NEWS
georg.brandl
python-checkins at python.org
Sat Sep 30 14:03:03 CEST 2006
Author: georg.brandl
Date: Sat Sep 30 14:03:02 2006
New Revision: 52079
Modified:
python/branches/release25-maint/Doc/api/concrete.tex
python/branches/release25-maint/Misc/NEWS
Log:
Bug #1546052: clarify that PyString_FromString(AndSize) copies the
string pointed to by its parameter.
(backport from rev. 52078)
Modified: python/branches/release25-maint/Doc/api/concrete.tex
==============================================================================
--- python/branches/release25-maint/Doc/api/concrete.tex (original)
+++ python/branches/release25-maint/Doc/api/concrete.tex Sat Sep 30 14:03:02 2006
@@ -602,15 +602,15 @@
\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}
Modified: python/branches/release25-maint/Misc/NEWS
==============================================================================
--- python/branches/release25-maint/Misc/NEWS (original)
+++ python/branches/release25-maint/Misc/NEWS Sat Sep 30 14:03:02 2006
@@ -163,6 +163,9 @@
Documentation
-------------
+- Bug #1546052: clarify that PyString_FromString(AndSize) copies the
+ string pointed to by its parameter.
+
- Bug #1566663: remove obsolete example from datetime docs.
- Bug #1541682: Fix example in the "Refcount details" API docs.
More information about the Python-checkins
mailing list