[Python-checkins] python/dist/src/Doc/api concrete.tex, 1.58, 1.58.2.1

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Fri Dec 10 18:13:53 CET 2004


Update of /cvsroot/python/python/dist/src/Doc/api
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22319

Modified Files:
      Tag: release24-maint
	concrete.tex 
Log Message:
SF bug #1082944:  Incorrect docs for PyUnicode_TailMatch

* Note correct return type is int.
* Note that -1 returned on failure.



Index: concrete.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/concrete.tex,v
retrieving revision 1.58
retrieving revision 1.58.2.1
diff -u -d -r1.58 -r1.58.2.1
--- concrete.tex	22 Nov 2004 13:02:31 -0000	1.58
+++ concrete.tex	10 Dec 2004 17:13:51 -0000	1.58.2.1
@@ -1449,7 +1449,7 @@
   resulting Unicode string.
 \end{cfuncdesc}
 
-\begin{cfuncdesc}{PyObject*}{PyUnicode_Tailmatch}{PyObject *str,
+\begin{cfuncdesc}{int}{PyUnicode_Tailmatch}{PyObject *str,
                                                   PyObject *substr,
                                                   int start,
                                                   int end,
@@ -1457,6 +1457,7 @@
   Return 1 if \var{substr} matches \var{str}[\var{start}:\var{end}] at
   the given tail end (\var{direction} == -1 means to do a prefix
   match, \var{direction} == 1 a suffix match), 0 otherwise.
+  Returns \code{-1} if an error occurred.                         
 \end{cfuncdesc}
 
 \begin{cfuncdesc}{int}{PyUnicode_Find}{PyObject *str,



More information about the Python-checkins mailing list