mirror of https://github.com/python/cpython
Explicit class names.
This commit is contained in:
parent
ae91afdcfb
commit
6ec04ffc5d
|
@ -3733,7 +3733,7 @@ implementing the class \class{peel_banana}, a subclass of
|
||||||
|
|
||||||
Subclasses of \class{Command} must define the following methods.
|
Subclasses of \class{Command} must define the following methods.
|
||||||
|
|
||||||
\begin{methoddesc}{initialize_options()}
|
\begin{methoddesc}[Command]{initialize_options()}
|
||||||
Set default values for all the options that this command
|
Set default values for all the options that this command
|
||||||
supports. Note that these defaults may be overridden by other
|
supports. Note that these defaults may be overridden by other
|
||||||
commands, by the setup script, by config files, or by the
|
commands, by the setup script, by config files, or by the
|
||||||
|
@ -3742,7 +3742,7 @@ between options; generally, \method{initialize_options()} implementations
|
||||||
are just a bunch of \samp{self.foo = None} assignments.
|
are just a bunch of \samp{self.foo = None} assignments.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{finalize_options}{}
|
\begin{methoddesc}[Command]{finalize_options}{}
|
||||||
Set final values for all the options that this command supports.
|
Set final values for all the options that this command supports.
|
||||||
This is always called as late as possible, ie. after any option
|
This is always called as late as possible, ie. after any option
|
||||||
assignments from the command-line or from other commands have been
|
assignments from the command-line or from other commands have been
|
||||||
|
@ -3751,7 +3751,7 @@ done. Thus, this is the place to to code option dependencies: if
|
||||||
\var{bar} as long as \var{foo} still has the same value it was assigned in
|
\var{bar} as long as \var{foo} still has the same value it was assigned in
|
||||||
\method{initialize_options()}.
|
\method{initialize_options()}.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
\begin{methoddesc}{run}{}
|
\begin{methoddesc}[Command]{run}{}
|
||||||
A command's raison d'etre: carry out the action it exists to
|
A command's raison d'etre: carry out the action it exists to
|
||||||
perform, controlled by the options initialized in
|
perform, controlled by the options initialized in
|
||||||
\method{initialize_options()}, customized by other commands, the setup
|
\method{initialize_options()}, customized by other commands, the setup
|
||||||
|
|
Loading…
Reference in New Issue