mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Added a version annotation for StringTypes.
Added documentation for BooleanType.
This commit is contained in:
parent
43193150ee
commit
c58507582b
1 changed files with 7 additions and 0 deletions
|
|
@ -35,6 +35,12 @@ The type of type objects (such as returned by
|
|||
\function{type()}\bifuncindex{type}).
|
||||
\end{datadesc}
|
||||
|
||||
\begin{datadesc}{BooleanType}
|
||||
The type of the \class{bool} values \code{True} and \code{False}; this
|
||||
is an alias of the built-in \function{bool()} function.
|
||||
\versionadded{2.3}
|
||||
\end{datadesc}
|
||||
|
||||
\begin{datadesc}{IntType}
|
||||
The type of integers (e.g. \code{1}).
|
||||
\end{datadesc}
|
||||
|
|
@ -165,4 +171,5 @@ portable than using a sequence of the two string types constructed
|
|||
elsewhere since it only contains \code{UnicodeType} if it has been
|
||||
built in the running version of Python. For example:
|
||||
\code{isinstance(s, types.StringTypes)}.
|
||||
\versionadded{2.2}
|
||||
\end{datadesc}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue