@@ -19,20 +19,21 @@ A small number of constants live in the built-in namespace. They are:
19
19
20
20
.. data :: None
21
21
22
- The sole value of the type :data: `types.NoneType `. ``None `` is frequently used to
23
- represent the absence of a value, as when default arguments are not passed to a
24
- function. Assignments to ``None `` are illegal and raise a :exc: `SyntaxError `.
22
+ An object frequently used to represent the absence of a value, as when
23
+ default arguments are not passed to a function. Assignments to ``None ``
24
+ are illegal and raise a :exc: `SyntaxError `.
25
+ ``None `` is the sole instance of the :data: `NoneType ` type.
25
26
26
27
27
28
.. data :: NotImplemented
28
29
29
- Sole value of the type :data: `types.NotImplementedType ` and a
30
- special value which should be returned by the binary special methods
30
+ A special value which should be returned by the binary special methods
31
31
(e.g. :meth: `__eq__ `, :meth: `__lt__ `, :meth: `__add__ `, :meth: `__rsub__ `,
32
32
etc.) to indicate that the operation is not implemented with respect to
33
33
the other type; may be returned by the in-place binary special methods
34
34
(e.g. :meth: `__imul__ `, :meth: `__iand__ `, etc.) for the same purpose.
35
35
It should not be evaluated in a boolean context.
36
+ ``NotImplemented `` is the sole instance of the :data: `types.NotImplementedType ` type.
36
37
37
38
.. note ::
38
39
@@ -60,9 +61,9 @@ A small number of constants live in the built-in namespace. They are:
60
61
.. index :: single: ...; ellipsis literal
61
62
.. data :: Ellipsis
62
63
63
- The same as the ellipsis literal "``... ``" and sole value of the type
64
- :data: `types.EllipsisType `. Special value used mostly in conjunction
64
+ The same as the ellipsis literal "``... ``". Special value used mostly in conjunction
65
65
with extended slicing syntax for user-defined container data types.
66
+ ``Ellipsis `` is the sole instance of the :data: `types.EllipsisType ` type.
66
67
67
68
68
69
.. data :: __debug__
0 commit comments