summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-06-26 19:21:24 (GMT)
committerGuido van Rossum <guido@python.org>1996-06-26 19:21:24 (GMT)
commit4d206541be5ae9444674ac7b480fdd0dcbe238ea (patch)
treeb7bd34b3687b7d36b79b39308170c41d0603e4bb /Doc
parent50ec5c074ab23fe0fc67915a7c3208faaf8d61d7 (diff)
downloadcpython-4d206541be5ae9444674ac7b480fdd0dcbe238ea.zip
cpython-4d206541be5ae9444674ac7b480fdd0dcbe238ea.tar.gz
cpython-4d206541be5ae9444674ac7b480fdd0dcbe238ea.tar.bz2
Slight update; file args are no longer optional.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/lib/libimp.tex16
-rw-r--r--Doc/libimp.tex16
2 files changed, 16 insertions, 16 deletions
diff --git a/Doc/lib/libimp.tex b/Doc/lib/libimp.tex
index dbced97..e1e4a53 100644
--- a/Doc/lib/libimp.tex
+++ b/Doc/lib/libimp.tex
@@ -67,15 +67,15 @@ Return \code{1} if there is a frozen module (see \code{init_frozen})
called \var{name}, \code{0} if there is no such module.
\end{funcdesc}
-\begin{funcdesc}{load_compiled}{name\, pathname\, \optional{file}}
+\begin{funcdesc}{load_compiled}{name\, pathname\, file}
Load and initialize a module implemented as a byte-compiled code file
and return its module object. If the module was already initialized,
it will be initialized {\em again}. The \var{name} argument is used
to create or access a module object. The \var{pathname} argument
-points to the byte-compiled code file. The optional \var{file}
+points to the byte-compiled code file. The \var{file}
argument is the byte-compiled code file, open for reading in binary
-mode, from the beginning --- if not given, the function opens
-\var{pathname}. It must currently be a real file object, not a
+mode, from the beginning.
+It must currently be a real file object, not a
user-defined class emulating a file.
\end{funcdesc}
@@ -92,14 +92,14 @@ shared libraries is highly system dependent, and not all systems
support it.)
\end{funcdesc}
-\begin{funcdesc}{load_source}{name\, pathname\, \optional{file}}
+\begin{funcdesc}{load_source}{name\, pathname\, 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 {\em again}. The \var{name} argument is used to
create or access a module object. The \var{pathname} argument points
-to the source file. The optional \var{file} argument is the source
-file, open for reading as text, from the beginning --- if not given,
-the function opens \var{pathname}. It must currently be a real file
+to the source file. The \var{file} argument is the source
+file, open for reading as text, from the beginning.
+It must currently be a real file
object, not a user-defined class emulating a file. Note that if a
properly matching byte-compiled file (with suffix \code{.pyc}) exists,
it will be used instead of parsing the given source file.
diff --git a/Doc/libimp.tex b/Doc/libimp.tex
index dbced97..e1e4a53 100644
--- a/Doc/libimp.tex
+++ b/Doc/libimp.tex
@@ -67,15 +67,15 @@ Return \code{1} if there is a frozen module (see \code{init_frozen})
called \var{name}, \code{0} if there is no such module.
\end{funcdesc}
-\begin{funcdesc}{load_compiled}{name\, pathname\, \optional{file}}
+\begin{funcdesc}{load_compiled}{name\, pathname\, file}
Load and initialize a module implemented as a byte-compiled code file
and return its module object. If the module was already initialized,
it will be initialized {\em again}. The \var{name} argument is used
to create or access a module object. The \var{pathname} argument
-points to the byte-compiled code file. The optional \var{file}
+points to the byte-compiled code file. The \var{file}
argument is the byte-compiled code file, open for reading in binary
-mode, from the beginning --- if not given, the function opens
-\var{pathname}. It must currently be a real file object, not a
+mode, from the beginning.
+It must currently be a real file object, not a
user-defined class emulating a file.
\end{funcdesc}
@@ -92,14 +92,14 @@ shared libraries is highly system dependent, and not all systems
support it.)
\end{funcdesc}
-\begin{funcdesc}{load_source}{name\, pathname\, \optional{file}}
+\begin{funcdesc}{load_source}{name\, pathname\, 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 {\em again}. The \var{name} argument is used to
create or access a module object. The \var{pathname} argument points
-to the source file. The optional \var{file} argument is the source
-file, open for reading as text, from the beginning --- if not given,
-the function opens \var{pathname}. It must currently be a real file
+to the source file. The \var{file} argument is the source
+file, open for reading as text, from the beginning.
+It must currently be a real file
object, not a user-defined class emulating a file. Note that if a
properly matching byte-compiled file (with suffix \code{.pyc}) exists,
it will be used instead of parsing the given source file.