summaryrefslogtreecommitdiffstats
path: root/Doc/lib/liboperator.tex
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-04-07 05:36:17 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-04-07 05:36:17 (GMT)
commitad351f806d74d8ffbfd8b8f8f78b72043d9c8168 (patch)
treef9d3bc5f019c8facefc606b2abdf47c9cf58ab23 /Doc/lib/liboperator.tex
parentfb5f04d77f5b0d09c38081f269a467be6f431a7d (diff)
downloadcpython-ad351f806d74d8ffbfd8b8f8f78b72043d9c8168.zip
cpython-ad351f806d74d8ffbfd8b8f8f78b72043d9c8168.tar.gz
cpython-ad351f806d74d8ffbfd8b8f8f78b72043d9c8168.tar.bz2
SF bug #1178269 Clarify when isMappingType/isSequenceType is True.
Diffstat (limited to 'Doc/lib/liboperator.tex')
-rw-r--r--Doc/lib/liboperator.tex8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/lib/liboperator.tex b/Doc/lib/liboperator.tex
index 57ff773..81f1663 100644
--- a/Doc/lib/liboperator.tex
+++ b/Doc/lib/liboperator.tex
@@ -262,7 +262,8 @@ unbound methods, class objects, and instance objects which support the
\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 @@ be.}
\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 @@ be.}
\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.}