]> granicus.if.org Git - python/commitdiff
Document the NotImplemented object.
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Thu, 4 Jan 2001 01:25:50 +0000 (01:25 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Thu, 4 Jan 2001 01:25:50 +0000 (01:25 +0000)
Doc/ref/ref3.tex

index b8256c3e4529d6098d9394f66f87a566d3e8b8e1..cd75d0c956a16b082b87b11fdf9e355dcf8e423b 100644 (file)
@@ -130,6 +130,15 @@ Its truth value is false.
 \ttindex{None}
 \obindex{None@{\texttt{None}}}
 
+\item[NotImplemented]
+This type has a single value.  There is a single object with this value.
+This object is accessed through the built-in name \code{NotImplemented}.
+Binary number methods may return this value if they do not implement the
+operation for the types of operands provided.  The interpreter will then
+try the reverse operation. Its truth value is true.
+\ttindex{NotImplemented}
+\obindex{NotImplemented@{\texttt{NotImplemented}}}
+
 \item[Ellipsis]
 This type has a single value.  There is a single object with this value.
 This object is accessed through the built-in name \code{Ellipsis}.