]> granicus.if.org Git - python/commitdiff
Reduced description of the obsolete method Stats.ignore().
authorFred Drake <fdrake@acm.org>
Thu, 9 Apr 1998 04:49:56 +0000 (04:49 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 9 Apr 1998 04:49:56 +0000 (04:49 +0000)
Doc/lib/libprofile.tex
Doc/libprofile.tex

index 43d92c1e6675ad0cb78f0a3ae11bb2352cc797b8..8aa547731953ef15971dd454722732fb1a0f5fb3 100644 (file)
@@ -495,23 +495,12 @@ ordering are identical to the \method{print_callers()} method.
 \end{methoddesc}
 
 \begin{methoddesc}{ignore}{}
-This method of the \class{Stats} class is used to dispose of the value
-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.%
+\deprecated{1.5.1}{This is not needed in modern versions of Python.%
 \footnote{
 This was once necessary, when Python would print any unused expression
 result that was not \code{None}.  The method is still defined for
 backward compatibility.
-}
+}}
 \end{methoddesc}
 
 
index 43d92c1e6675ad0cb78f0a3ae11bb2352cc797b8..8aa547731953ef15971dd454722732fb1a0f5fb3 100644 (file)
@@ -495,23 +495,12 @@ ordering are identical to the \method{print_callers()} method.
 \end{methoddesc}
 
 \begin{methoddesc}{ignore}{}
-This method of the \class{Stats} class is used to dispose of the value
-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.%
+\deprecated{1.5.1}{This is not needed in modern versions of Python.%
 \footnote{
 This was once necessary, when Python would print any unused expression
 result that was not \code{None}.  The method is still defined for
 backward compatibility.
-}
+}}
 \end{methoddesc}