Reduced description of the obsolete method Stats.ignore().
This commit is contained in:
parent
3217be9395
commit
f1b72ddf82
|
@ -495,23 +495,12 @@ ordering are identical to the \method{print_callers()} method.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{ignore}{}
|
\begin{methoddesc}{ignore}{}
|
||||||
This method of the \class{Stats} class is used to dispose of the value
|
\deprecated{1.5.1}{This is not needed in modern versions of Python.%
|
||||||
returned by earlier methods. All standard methods in this class
|
|
||||||
return the instance that is being processed, so that the commands can
|
|
||||||
be strung together. For example:
|
|
||||||
|
|
||||||
\begin{verbatim}
|
|
||||||
pstats.Stats('foofile').strip_dirs().sort_stats('cum') \
|
|
||||||
.print_stats().ignore()
|
|
||||||
\end{verbatim}
|
|
||||||
|
|
||||||
would perform all the indicated functions, but it would not return
|
|
||||||
the final reference to the \class{Stats} instance.%
|
|
||||||
\footnote{
|
\footnote{
|
||||||
This was once necessary, when Python would print any unused expression
|
This was once necessary, when Python would print any unused expression
|
||||||
result that was not \code{None}. The method is still defined for
|
result that was not \code{None}. The method is still defined for
|
||||||
backward compatibility.
|
backward compatibility.
|
||||||
}
|
}}
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -495,23 +495,12 @@ ordering are identical to the \method{print_callers()} method.
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
\begin{methoddesc}{ignore}{}
|
\begin{methoddesc}{ignore}{}
|
||||||
This method of the \class{Stats} class is used to dispose of the value
|
\deprecated{1.5.1}{This is not needed in modern versions of Python.%
|
||||||
returned by earlier methods. All standard methods in this class
|
|
||||||
return the instance that is being processed, so that the commands can
|
|
||||||
be strung together. For example:
|
|
||||||
|
|
||||||
\begin{verbatim}
|
|
||||||
pstats.Stats('foofile').strip_dirs().sort_stats('cum') \
|
|
||||||
.print_stats().ignore()
|
|
||||||
\end{verbatim}
|
|
||||||
|
|
||||||
would perform all the indicated functions, but it would not return
|
|
||||||
the final reference to the \class{Stats} instance.%
|
|
||||||
\footnote{
|
\footnote{
|
||||||
This was once necessary, when Python would print any unused expression
|
This was once necessary, when Python would print any unused expression
|
||||||
result that was not \code{None}. The method is still defined for
|
result that was not \code{None}. The method is still defined for
|
||||||
backward compatibility.
|
backward compatibility.
|
||||||
}
|
}}
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue