]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Adjust documentation for new.instance() to reflect that the second
authorFred Drake <fdrake@acm.org>
Sun, 28 Jan 2001 17:23:05 +0000 (17:23 +0000)
committerFred Drake <fdrake@acm.org>
Sun, 28 Jan 2001 17:23:05 +0000 (17:23 +0000)
parameter may be omitted or None.

Doc/lib/libnew.tex

index ec9bc1164aa2ce6b03d6b0ebcaf02dafbd1bb5b7..9547b588a635e458b21d1076a47f6efa3952858a 100644 (file)
@@ -14,10 +14,12 @@ to the interpreter, so care must be exercised when using this module.
 
 The \module{new} module defines the following functions:
 
-\begin{funcdesc}{instance}{class, dict}
+\begin{funcdesc}{instance}{class\optional{, dict}}
 This function creates an instance of \var{class} with dictionary
-\var{dict} without calling the \method{__init__()} constructor. Note that
-there are no guarantees that the object will be in a consistent state.
+\var{dict} without calling the \method{__init__()} constructor.  If
+\var{dict} is omitted or \code{None}, a new, empty dictionary is
+created for the new instance.  Note that there are no guarantees that
+the object will be in a consistent state.
 \end{funcdesc}
 
 \begin{funcdesc}{instancemethod}{function, instance, class}