Commit 8e3bec54 authored by Johannes Gijsbers's avatar Johannes Gijsbers

Correct argument specifications of load_compiled and load_source: the file

argument is optional on both (the format string is "ss|O!").
parent c8906181
...@@ -192,7 +192,7 @@ Return \code{True} if there is a frozen module (see ...@@ -192,7 +192,7 @@ Return \code{True} if there is a frozen module (see
no such module. no such module.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{load_compiled}{name, pathname, file} \begin{funcdesc}{load_compiled}{name, pathname, \optional{file}}
\indexii{file}{byte-code} \indexii{file}{byte-code}
Load and initialize a module implemented as a byte-compiled code file Load and initialize a module implemented as a byte-compiled code file
and return its module object. If the module was already initialized, 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 ...@@ -218,7 +218,7 @@ shared libraries is highly system dependent, and not all systems
support it.) support it.)
\end{funcdesc} \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 Load and initialize a module implemented as a Python source file and
return its module object. If the module was already initialized, it return its module object. If the module was already initialized, it
will be initialized \emph{again}. The \var{name} argument is used to will be initialized \emph{again}. The \var{name} argument is used to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment