]> granicus.if.org Git - python/commitdiff
Added note to __not__() description that this operation is defined
authorFred Drake <fdrake@acm.org>
Tue, 15 Jun 1999 20:56:40 +0000 (20:56 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 15 Jun 1999 20:56:40 +0000 (20:56 +0000)
only by the interpreter core and is not overridable by objects.

Based on comment from David Ascher on the list.

Doc/lib/liboperator.tex

index c32900915ab8e00934698afaf52357bcfeb99124..608f1015dffaefd476262f53d47b54d28051e13d 100644 (file)
@@ -86,7 +86,9 @@ Return the bitwise exclusive or of \var{a} and \var{b}.
 
 \begin{funcdesc}{not_}{o}
 \funcline{__not__}{o}
-Return the outcome of \keyword{not} \var{o}.
+Return the outcome of \keyword{not} \var{o}.  (Note that there is no
+\method{__not__()} discipline for object instances; only the
+interpreter core defines this operation.)
 \end{funcdesc}
 
 \begin{funcdesc}{truth}{o}