[Python-checkins] cpython (2.7): document NotImplemented

benjamin.peterson python-checkins at python.org
Sat Jul 30 17:00:17 CEST 2011


http://hg.python.org/cpython/rev/1446c126d6f2
changeset:   71635:1446c126d6f2
branch:      2.7
parent:      71628:5a248fcfa112
user:        Benjamin Peterson <benjamin at python.org>
date:        Sat Jul 30 09:57:24 2011 -0500
summary:
  document NotImplemented

files:
  Doc/library/stdtypes.rst |  9 +++++++++
  1 files changed, 9 insertions(+), 0 deletions(-)


diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2932,6 +2932,15 @@
 
 It is written as ``Ellipsis``.
 
+The NotImplemented Object
+-------------------------
+
+This object is returned from comparisons and binary operations when they are
+asked to operate on types they don't support. See :ref:`comparisons` for more
+information.
+
+It is written as ``NotImplemented``.
+
 
 Boolean Values
 --------------

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list