From: Raymond Hettinger Date: Wed, 11 Jun 2003 09:15:26 +0000 (+0000) Subject: * Added missing documentation for object(). X-Git-Tag: v2.3c1~496 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e902b27e062fdcab71fa1876d99d32bf5190279;p=thirdparty%2FPython%2Fcpython.git * Added missing documentation for object(). * Noted the Py2.3 in the optional arg for bool(). --- diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index ef28a8a177f0..b7d282b4a541 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -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