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

Skip to content

Commit 7e902b2

Browse files
committed
* Added missing documentation for object().
* Noted the Py2.3 in the optional arg for bool().
1 parent 3985df2 commit 7e902b2

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

Doc/lib/libfuncs.tex

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,13 @@ \section{Built-in Functions \label{built-in-funcs}}
8686
otherwise it returns \code{True}. \code{bool} is also a class,
8787
which is a subclass of \code{int}. Class \code{bool} cannot be
8888
subclassed further. Its only instances are \code{False} and
89-
\code{True}. If no argument is given, this function returns
90-
\code{False}.
89+
\code{True}.
90+
9191
\indexii{Boolean}{type}
9292
\versionadded{2.2.1}
93+
94+
If no argument is given, this function returns \code{False}.
95+
\versionchanged{2.3}
9396
\end{funcdesc}
9497

9598
\begin{funcdesc}{buffer}{object\optional{, offset\optional{, size}}}
@@ -678,6 +681,16 @@ \section{Built-in Functions \label{built-in-funcs}}
678681
than one argument, return the smallest of the arguments.
679682
\end{funcdesc}
680683

684+
\begin{funcdesc}{object}{}
685+
Return a new featureless object. \function{object} is a base
686+
for all new style classes. It has the methods that are common
687+
to all instances of new style classes.
688+
\versionadded{2.2}
689+
690+
This function does not accept any arguments. \versionchanged{2.3}
691+
Formerly, it accepted arguments but ignored them.
692+
\end{funcdesc}
693+
681694
\begin{funcdesc}{oct}{x}
682695
Convert an integer number (of any size) to an octal string. The
683696
result is a valid Python expression. Note: this always yields an

0 commit comments

Comments
 (0)