Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74bcac4

Browse files
committed
- documented Ellipsis, NotImplemented
- minor markup changes - indented for consistency with newer content
1 parent d0859aa commit 74bcac4

1 file changed

Lines changed: 20 additions & 9 deletions

File tree

Doc/lib/libconsts.tex

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
1-
\section{Builtin Constants}
1+
\section{Built-in Constants}
22

3-
A small number of constants live in the builtin namespace. They are:
3+
A small number of constants live in the built-in namespace. They are:
44

55
\begin{datadesc}{False}
6-
The false value of the \code{bool} type.
7-
\versionadded{2.3}
6+
The false value of the \class{bool} type.
7+
\versionadded{2.3}
88
\end{datadesc}
99

1010
\begin{datadesc}{True}
11-
The true value of the \code{bool} type.
12-
\versionadded{2.3}
11+
The true value of the \class{bool} type.
12+
\versionadded{2.3}
1313
\end{datadesc}
1414

1515
\begin{datadesc}{None}
16-
The sole value of \code{NoneType}. \code{None} is frequently used to
17-
represent the absence of a value, as when default arguments are not passed
18-
to a function.
16+
The sole value of \code{\refmodule{types}.NoneType}. \code{None} is
17+
frequently used to represent the absence of a value, as when default
18+
arguments are not passed to a function.
1919
\end{datadesc}
2020

21+
\begin{datadesc}{NotImplemented}
22+
Special value which can be returned by the ``rich comparison''
23+
special methods (\method{__eq__()}, \method{__lt__()}, and friends),
24+
to indicate that the comparison is not implemented with respect to
25+
the other type.
26+
\end{datadesc}
27+
28+
\begin{datadesc}{Ellipsis}
29+
Special value used in conjunction with extended slicing syntax.
30+
% XXX Someone who understands extended slicing should fill in here.
31+
\end{datadesc}

0 commit comments

Comments
 (0)