@@ -19,19 +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 ``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
- Special value which should be returned by the binary special methods
30
+ A special value which should be returned by the binary special methods
30
31
(e.g. :meth: `__eq__ `, :meth: `__lt__ `, :meth: `__add__ `, :meth: `__rsub__ `,
31
32
etc.) to indicate that the operation is not implemented with respect to
32
33
the other type; may be returned by the in-place binary special methods
33
34
(e.g. :meth: `__imul__ `, :meth: `__iand__ `, etc.) for the same purpose.
34
35
It should not be evaluated in a boolean context.
36
+ ``NotImplemented `` is the sole instance of the :data: `types.NotImplementedType ` type.
35
37
36
38
.. note ::
37
39
@@ -59,8 +61,9 @@ A small number of constants live in the built-in namespace. They are:
59
61
.. index :: single: ...; ellipsis literal
60
62
.. data :: Ellipsis
61
63
62
- The same as the ellipsis literal "``... ``". Special value used mostly in conjunction
64
+ The same as the ellipsis literal "``... ``". Special value used mostly in conjunction
63
65
with extended slicing syntax for user-defined container data types.
66
+ ``Ellipsis `` is the sole instance of the :data: `types.EllipsisType ` type.
64
67
65
68
66
69
.. data :: __debug__
0 commit comments