blob: fecd8368f6ebe199210b25835148ddb3b4a52445 [file] [log] [blame]
Georg Brandl116aa622007-08-15 14:28:22 +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 The same as ``...``. Special value used mostly in conjunction with extended
39 slicing syntax for user-defined container data types.
40
41 .. % XXX Someone who understands extended slicing should fill in here.
42