[Python-Dev] the not operator (and the __not__ special method)

Mark McEahern marklists@mceahern.com
Thu, 3 Oct 2002 16:36:01 -0500


http://www.python.org/doc/current/lib/module-operator.html

says

not_(o)
__not__(o)
Return the outcome of not o. (Note that there is no __not__() method for
object instances; only the interpreter core defines this operation. The
result is affected by the __nonzero__() and __len__() methods.)

// m