[Python-checkins] python/dist/src/Doc/lib liboperator.tex, 1.31.4.2, 1.31.4.3

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Thu Apr 7 07:37:50 CEST 2005


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

Modified Files:
      Tag: release24-maint
	liboperator.tex 
Log Message:
SF bug #1178269 Clarify when isMappingType/isSequenceType is True.

Index: liboperator.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/liboperator.tex,v
retrieving revision 1.31.4.2
retrieving revision 1.31.4.3
diff -u -d -r1.31.4.2 -r1.31.4.3
--- liboperator.tex	7 Apr 2005 04:39:35 -0000	1.31.4.2
+++ liboperator.tex	7 Apr 2005 05:37:47 -0000	1.31.4.3
@@ -262,7 +262,8 @@
 
 \begin{funcdesc}{isMappingType}{o}
 Returns true if the object \var{o} supports the mapping interface.
-This is true for dictionaries and all instance objects.
+This is true for dictionaries and all instance objects defining
+\method{__getitem__}.
 \warning{There is no reliable way to test if an instance
 supports the complete mapping protocol since the interface itself is
 ill-defined.  This makes this test less useful than it otherwise might
@@ -271,7 +272,7 @@
 
 \begin{funcdesc}{isNumberType}{o}
 Returns true if the object \var{o} represents a number.  This is true
-for all numeric types implemented in C, and for all instance objects.
+for all numeric types implemented in C.
 \warning{There is no reliable way to test if an instance
 supports the complete numeric interface since the interface itself is
 ill-defined.  This makes this test less useful than it otherwise might
@@ -281,7 +282,8 @@
 \begin{funcdesc}{isSequenceType}{o}
 Returns true if the object \var{o} supports the sequence protocol.
 This returns true for all objects which define sequence methods in C,
-and for all instance objects.  \warning{There is no reliable
+and for all instance objects defining \method{__getitem__}.
+\warning{There is no reliable
 way to test if an instance supports the complete sequence interface
 since the interface itself is ill-defined.  This makes this test less
 useful than it otherwise might be.}



More information about the Python-checkins mailing list