blob: 4aa3a1c18c72cc2cfa0280622dadc13a07705955 [file] [log] [blame]
Georg Brandl8ec7f652007-08-15 14:28:01 +00001
2Built-in Constants
3==================
4
5A small number of constants live in the built-in namespace. They are:
6
7
8.. data:: False
9
10 The false value of the :class:`bool` type.
11
12 .. versionadded:: 2.3
13
14
15.. data:: True
16
17 The true value of the :class:`bool` type.
18
19 .. versionadded:: 2.3
20
21
22.. data:: None
23
24 The sole value of :attr:`types.NoneType`. ``None`` is frequently used to
25 represent the absence of a value, as when default arguments are not passed to a
26 function.
27
28
29.. data:: NotImplemented
30
31 Special value which can be returned by the "rich comparison" special methods
32 (:meth:`__eq__`, :meth:`__lt__`, and friends), to indicate that the comparison
33 is not implemented with respect to the other type.
34
35
36.. data:: Ellipsis
37
38 Special value used in conjunction with extended slicing syntax.
39
40 .. % XXX Someone who understands extended slicing should fill in here.
41