]> granicus.if.org Git - python/commitdiff
* Added missing documentation for object().
authorRaymond Hettinger <python@rcn.com>
Wed, 11 Jun 2003 09:15:26 +0000 (09:15 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 11 Jun 2003 09:15:26 +0000 (09:15 +0000)
* Noted the Py2.3 in the optional arg for bool().

Doc/lib/libfuncs.tex

index ef28a8a177f0f3ff612896ffb21dd9e44ee6316e..b7d282b4a541faa2b9fe20ec9bef7e7df2146779 100644 (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