diff options
author | Raymond Hettinger <python@rcn.com> | 2003-06-11 09:15:26 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-06-11 09:15:26 (GMT) |
commit | 7e902b27e062fdcab71fa1876d99d32bf5190279 (patch) | |
tree | 4bfaef0d487b22191433282e1660bf12465ab860 /Doc | |
parent | 3985df2c99c43dd25996eb53b6969f0bdb387026 (diff) | |
download | cpython-7e902b27e062fdcab71fa1876d99d32bf5190279.zip cpython-7e902b27e062fdcab71fa1876d99d32bf5190279.tar.gz cpython-7e902b27e062fdcab71fa1876d99d32bf5190279.tar.bz2 |
* Added missing documentation for object().
* Noted the Py2.3 in the optional arg for bool().
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libfuncs.tex | 17 |
1 files 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 |