* Added missing documentation for object().

* Noted the Py2.3 in the optional arg for bool().
This commit is contained in:
Raymond Hettinger 2003-06-11 09:15:26 +00:00
parent 3985df2c99
commit 7e902b27e0
1 changed files with 15 additions and 2 deletions

View File

@ -86,10 +86,13 @@ def my_import(name):
otherwise it returns \code{True}. \code{bool} is also a class,
which is a subclass of \code{int}. Class \code{bool} cannot be
subclassed further. Its only instances are \code{False} and
\code{True}. If no argument is given, this function returns
\code{False}.
\code{True}.
\indexii{Boolean}{type}
\versionadded{2.2.1}
If no argument is given, this function returns \code{False}.
\versionchanged{2.3}
\end{funcdesc}
\begin{funcdesc}{buffer}{object\optional{, offset\optional{, size}}}
@ -678,6 +681,16 @@ class C:
than one argument, return the smallest of the arguments.
\end{funcdesc}
\begin{funcdesc}{object}{}
Return a new featureless object. \function{object} is a base
for all new style classes. It has the methods that are common
to all instances of new style classes.
\versionadded{2.2}
This function does not accept any arguments. \versionchanged{2.3}
Formerly, it accepted arguments but ignored them.
\end{funcdesc}
\begin{funcdesc}{oct}{x}
Convert an integer number (of any size) to an octal string. The
result is a valid Python expression. Note: this always yields an