[Python-checkins] cpython (merge 3.4 -> default): (Merge 3.4) Closes #22580: Fix documentation of PyUnicode_Tailmatch()
victor.stinner
python-checkins at python.org
Thu Oct 9 11:11:59 CEST 2014
https://hg.python.org/cpython/rev/335d16d864e1
changeset: 92889:335d16d864e1
parent: 92887:f7124c167603
parent: 92888:4aba14bb6b1e
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Oct 09 11:11:49 2014 +0200
summary:
(Merge 3.4) Closes #22580: Fix documentation of PyUnicode_Tailmatch()
The result type is Py_ssize_t (and not int).
files:
Doc/c-api/unicode.rst | 2 +-
1 files changed, 1 insertions(+), 1 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
@@ -1575,7 +1575,7 @@
Unicode string.
-.. c:function:: int PyUnicode_Tailmatch(PyObject *str, PyObject *substr, \
+.. c:function:: Py_ssize_t PyUnicode_Tailmatch(PyObject *str, PyObject *substr, \
Py_ssize_t start, Py_ssize_t end, int direction)
Return 1 if *substr* matches ``str[start:end]`` at the given tail end
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list