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

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


http://hg.python.org/cpython/rev/1707b7d7da51
changeset: 71633:1707b7d7da51
branch: 3.2
parent: 71631:febf911c2e95
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
@@ -2711,6 +2711,15 @@
 
 It is written as ``Ellipsis`` or ``...``.
 
+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

AltStyle によって変換されたページ (->オリジナル) /