]> granicus.if.org Git - python/commitdiff
we can call singleton types now
authorBenjamin Peterson <benjamin@python.org>
Sat, 30 Jul 2011 15:03:09 +0000 (10:03 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sat, 30 Jul 2011 15:03:09 +0000 (10:03 -0500)
Doc/library/stdtypes.rst

index 4bae25567594eb75d9458f5536d3a6296ac31c17..2840055a94233b7d55ed4c1622cf23ab8545efef 100644 (file)
@@ -2706,7 +2706,7 @@ The Null Object
 
 This object is returned by functions that don't explicitly return a value.  It
 supports no special operations.  There is exactly one null object, named
-``None`` (a built-in name).
+``None`` (a built-in name).  Calling ``type(None)`` produces the same singleton.
 
 It is written as ``None``.
 
@@ -2718,7 +2718,8 @@ The Ellipsis Object
 
 This object is commonly used by slicing (see :ref:`slicings`).  It supports no
 special operations.  There is exactly one ellipsis object, named
-:const:`Ellipsis` (a built-in name).
+:const:`Ellipsis` (a built-in name).  Calling ``type(Ellipsis)`` produces the
+:const:`Ellipsis` singleton.
 
 It is written as ``Ellipsis`` or ``...``.
 
@@ -2728,7 +2729,8 @@ 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.
+information.  There is exactly one ``NotImplemented`` object.  Calling
+``type(NotImplemented)`` produces the singleton instance.
 
 It is written as ``NotImplemented``.