mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Update document for the actual 2.1rc1
This commit is contained in:
parent
8c83ec63f5
commit
1fcd438956
1 changed files with 13 additions and 6 deletions
|
@ -626,12 +626,13 @@ Python packages to a central server.
|
||||||
|
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
|
|
||||||
\item Ka-Ping Yee contributed two new modules: \module{inspect.py}, a module for
|
\item Ka-Ping Yee contributed two new modules: \module{inspect.py}, a
|
||||||
getting information about live Python code, and \module{pydoc.py}, a
|
module for getting information about live Python code, and
|
||||||
module for interactively converting docstrings to HTML or text.
|
\module{pydoc.py}, a module for interactively converting docstrings to
|
||||||
As a bonus, \file{Tools/scripts/pydoc}, which is now automatically
|
HTML or text. As a bonus, \file{Tools/scripts/pydoc}, which is now
|
||||||
installed, uses \module{pydoc.py} to display documentation given a Python module, package, or class name. For example,
|
automatically installed, uses \module{pydoc.py} to display
|
||||||
\samp{pydoc xml.dom} displays the following:
|
documentation given a Python module, package, or class name. For
|
||||||
|
example, \samp{pydoc xml.dom} displays the following:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
Python Library Documentation: package xml.dom in xml
|
Python Library Documentation: package xml.dom in xml
|
||||||
|
@ -650,6 +651,7 @@ DESCRIPTION
|
||||||
...
|
...
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
|
\file{pydoc} also includes a Tk-based interactive help browser.
|
||||||
\file{pydoc} quickly becomes addictive; try it out!
|
\file{pydoc} quickly becomes addictive; try it out!
|
||||||
|
|
||||||
\item Two different modules for unit testing were added to the
|
\item Two different modules for unit testing were added to the
|
||||||
|
@ -719,6 +721,11 @@ unsuitable for your application or network setup, call
|
||||||
\item Support for raw socket access has been added to the
|
\item Support for raw socket access has been added to the
|
||||||
\module{socket} module, contributed by Grant Edwards.
|
\module{socket} module, contributed by Grant Edwards.
|
||||||
|
|
||||||
|
\item The \module{pstats} module now contains a simple interactive
|
||||||
|
statistics browser for displaying timing profiles for Python programs,
|
||||||
|
invoked when the module is run as a script. Contributed by
|
||||||
|
Eric S.\ Raymond.
|
||||||
|
|
||||||
\item A new implementation-dependent function, \function{sys._getframe(\optional{depth})},
|
\item A new implementation-dependent function, \function{sys._getframe(\optional{depth})},
|
||||||
has been added to return a given frame object from the current call stack.
|
has been added to return a given frame object from the current call stack.
|
||||||
\function{sys._getframe()} returns the frame at the top of the call stack;
|
\function{sys._getframe()} returns the frame at the top of the call stack;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue