mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Module names should be in \code{}.
Added index reference to site module.
This commit is contained in:
parent
0514ce126a
commit
5493205ba4
2 changed files with 6 additions and 4 deletions
|
|
@ -16,11 +16,11 @@ that wishes to use the mechanism must execute the statement
|
||||||
import user
|
import user
|
||||||
\end{verbatim}\ecode
|
\end{verbatim}\ecode
|
||||||
|
|
||||||
The user module looks for a file \file{.pythonrc.py} in the user's
|
The \code{user} module looks for a file \file{.pythonrc.py} in the user's
|
||||||
home directory and if it can be opened, exececutes it (using
|
home directory and if it can be opened, exececutes it (using
|
||||||
\code{execfile()}) in its own (i.e. the module \code{user}'s) global
|
\code{execfile()}) in its own (i.e. the module \code{user}'s) global
|
||||||
namespace. Errors during this phase are not caught; that's up to the
|
namespace. Errors during this phase are not caught; that's up to the
|
||||||
program that imports the user module, if it wishes. The home
|
program that imports the \code{user} module, if it wishes. The home
|
||||||
directory is assumed to be named by the \code{HOME} environment
|
directory is assumed to be named by the \code{HOME} environment
|
||||||
variable; if this is not set, the current directory is used.
|
variable; if this is not set, the current directory is used.
|
||||||
|
|
||||||
|
|
@ -58,3 +58,4 @@ Modules for general use should \emph{not} import this module; it may
|
||||||
interfere with the operation of the importing program.
|
interfere with the operation of the importing program.
|
||||||
|
|
||||||
For a site-wide customization mechanism, see module \code{site}.
|
For a site-wide customization mechanism, see module \code{site}.
|
||||||
|
\refstmodindex{site}
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,11 @@ that wishes to use the mechanism must execute the statement
|
||||||
import user
|
import user
|
||||||
\end{verbatim}\ecode
|
\end{verbatim}\ecode
|
||||||
|
|
||||||
The user module looks for a file \file{.pythonrc.py} in the user's
|
The \code{user} module looks for a file \file{.pythonrc.py} in the user's
|
||||||
home directory and if it can be opened, exececutes it (using
|
home directory and if it can be opened, exececutes it (using
|
||||||
\code{execfile()}) in its own (i.e. the module \code{user}'s) global
|
\code{execfile()}) in its own (i.e. the module \code{user}'s) global
|
||||||
namespace. Errors during this phase are not caught; that's up to the
|
namespace. Errors during this phase are not caught; that's up to the
|
||||||
program that imports the user module, if it wishes. The home
|
program that imports the \code{user} module, if it wishes. The home
|
||||||
directory is assumed to be named by the \code{HOME} environment
|
directory is assumed to be named by the \code{HOME} environment
|
||||||
variable; if this is not set, the current directory is used.
|
variable; if this is not set, the current directory is used.
|
||||||
|
|
||||||
|
|
@ -58,3 +58,4 @@ Modules for general use should \emph{not} import this module; it may
|
||||||
interfere with the operation of the importing program.
|
interfere with the operation of the importing program.
|
||||||
|
|
||||||
For a site-wide customization mechanism, see module \code{site}.
|
For a site-wide customization mechanism, see module \code{site}.
|
||||||
|
\refstmodindex{site}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue