diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-03 11:25:13 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-05-03 11:25:13 +0000 |
commit | 458120dd40db6b4df55a4e96b650e16798ef06a0 (patch) | |
tree | 8f82685be24fef97e715c6f5ca4c68d34d5074ee /sys/src/cmd/python/Doc/lib/libconsts.tex | |
parent | 3a742c699f6806c1145aea5149bf15de15a0afd7 (diff) |
add hg and python
Diffstat (limited to 'sys/src/cmd/python/Doc/lib/libconsts.tex')
-rw-r--r-- | sys/src/cmd/python/Doc/lib/libconsts.tex | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys/src/cmd/python/Doc/lib/libconsts.tex b/sys/src/cmd/python/Doc/lib/libconsts.tex new file mode 100644 index 000000000..a7b449837 --- /dev/null +++ b/sys/src/cmd/python/Doc/lib/libconsts.tex @@ -0,0 +1,31 @@ +\section{Built-in Constants} + +A small number of constants live in the built-in namespace. They are: + +\begin{datadesc}{False} + The false value of the \class{bool} type. + \versionadded{2.3} +\end{datadesc} + +\begin{datadesc}{True} + The true value of the \class{bool} type. + \versionadded{2.3} +\end{datadesc} + +\begin{datadesc}{None} + The sole value of \code{\refmodule{types}.NoneType}. \code{None} is + frequently used to represent the absence of a value, as when default + arguments are not passed to a function. +\end{datadesc} + +\begin{datadesc}{NotImplemented} + Special value which can be returned by the ``rich comparison'' + special methods (\method{__eq__()}, \method{__lt__()}, and friends), + to indicate that the comparison is not implemented with respect to + the other type. +\end{datadesc} + +\begin{datadesc}{Ellipsis} + Special value used in conjunction with extended slicing syntax. + % XXX Someone who understands extended slicing should fill in here. +\end{datadesc} |