[Python-checkins] cpython: Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not int

victor.stinner python-checkins at python.org
Wed Jan 4 04:27:13 CET 2012


http://hg.python.org/cpython/rev/547e918d7bf5
changeset:   74264:547e918d7bf5
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Wed Jan 04 03:59:16 2012 +0100
summary:
  Fix PyUnicode_Fill() doc: return type is Py_ssize_t, not int

files:
  Doc/c-api/unicode.rst |  2 +-
  Doc/whatsnew/3.3.rst  |  2 +-
  2 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
--- a/Doc/c-api/unicode.rst
+++ b/Doc/c-api/unicode.rst
@@ -564,7 +564,7 @@
    .. versionadded:: 3.3
 
 
-.. c:function:: int PyUnicode_Fill(PyObject *unicode, Py_ssize_t start, \
+.. c:function:: Py_ssize_t PyUnicode_Fill(PyObject *unicode, Py_ssize_t start, \
                         Py_ssize_t length, Py_UCS4 fill_char)
 
    Fill a string with a character: write *fill_char* into
diff --git a/Doc/whatsnew/3.3.rst b/Doc/whatsnew/3.3.rst
--- a/Doc/whatsnew/3.3.rst
+++ b/Doc/whatsnew/3.3.rst
@@ -828,7 +828,7 @@
  * :c:macro:`Py_UNICODE_strncmp`: use :c:func:`PyUnicode_Tailmatch`
  * :c:macro:`Py_UNICODE_strchr`, :c:macro:`Py_UNICODE_strrchr`: use
    :c:func:`PyUnicode_FindChar`
- * :c:macro:`Py_UNICODE_FILL`
+ * :c:macro:`Py_UNICODE_FILL`: use :c:func:`PyUnicode_Fill`
  * :c:macro:`Py_UNICODE_MATCH`
 
 Encoders:

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


More information about the Python-checkins mailing list