[Python-checkins] python/dist/src/Doc/api abstract.tex,1.13,1.14

loewis@sourceforge.net loewis@sourceforge.net
Wed, 08 May 2002 01:44:23 -0700


Update of /cvsroot/python/python/dist/src/Doc/api
In directory usw-pr-cvs1:/tmp/cvs-serv2607/Doc/api

Modified Files:
	abstract.tex 
Log Message:
Patch #552433: Special-case tuples. Avoid sub-type checking for lists.
Avoid checks for negative indices and duplicate checks for support of
the sequence protocol.


Index: abstract.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/api/abstract.tex,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** abstract.tex	23 Apr 2002 18:15:44 -0000	1.13
--- abstract.tex	8 May 2002 08:44:20 -0000	1.14
***************
*** 766,769 ****
--- 766,776 ----
  \end{cfuncdesc}
  
+ \begin{cfuncdesc}{PyObject*}{PySequence_ITEM}{PyObject *o, int i}
+   Return the \var{i}th element of \var{o} or \NULL on failure.
+   Macro form of \cfunction{PySequence_GetItem()} but without checking
+   that \cfunction{PySequence_Check(\var{o})} is true and without
+   adjustment for negative indices.  
+ \end{cfuncdesc}
+ 
  \begin{cfuncdesc}{int}{PySequence_Fast_GET_SIZE}{PyObject *o}
    Returns the length of \var{o}, assuming that \var{o} was