diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-07-30 15:03:09 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-07-30 15:03:09 (GMT) |
commit | 2c69e3dd822291538d972edb5df7549257406f35 (patch) | |
tree | 598ecac529132b79899e8fb6640b70aea085bd72 | |
parent | 7f94febd74fbc85b246dd9dc8108f142cbd26114 (diff) | |
download | cpython-2c69e3dd822291538d972edb5df7549257406f35.zip cpython-2c69e3dd822291538d972edb5df7549257406f35.tar.gz cpython-2c69e3dd822291538d972edb5df7549257406f35.tar.bz2 |
we can call singleton types now
-rw-r--r-- | Doc/library/stdtypes.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 4bae255..2840055 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -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``. |