From 7e902b27e062fdcab71fa1876d99d32bf5190279 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 11 Jun 2003 09:15:26 +0000 Subject: * Added missing documentation for object(). * Noted the Py2.3 in the optional arg for bool(). --- Doc/lib/libfuncs.tex | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index ef28a8a..b7d282b 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 -- cgit v0.12