]> granicus.if.org Git - python/commitdiff
Correct argument specifications of load_compiled and load_source: the file
authorJohannes Gijsbers <jlg@dds.nl>
Fri, 20 Aug 2004 14:38:56 +0000 (14:38 +0000)
committerJohannes Gijsbers <jlg@dds.nl>
Fri, 20 Aug 2004 14:38:56 +0000 (14:38 +0000)
argument is optional on both (the format string is "ss|O!").

Doc/lib/libimp.tex

index 31368f43c6e9f612a7bd9e8b9c20c921166f6160..ffab5c9cd30092cb818ad396d6e34c369e5aa980 100644 (file)
@@ -192,7 +192,7 @@ Return \code{True} if there is a frozen module (see
 no such module.
 \end{funcdesc}
 
-\begin{funcdesc}{load_compiled}{name, pathname, file}
+\begin{funcdesc}{load_compiled}{name, pathname, \optional{file}}
 \indexii{file}{byte-code}
 Load and initialize a module implemented as a byte-compiled code file
 and return its module object.  If the module was already initialized,
@@ -218,7 +218,7 @@ shared libraries is highly system dependent, and not all systems
 support it.)
 \end{funcdesc}
 
-\begin{funcdesc}{load_source}{name, pathname, file}
+\begin{funcdesc}{load_source}{name, pathname\optional{, file}}
 Load and initialize a module implemented as a Python source file and
 return its module object.  If the module was already initialized, it
 will be initialized \emph{again}.  The \var{name} argument is used to