⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 obsolete-modules.html

📁 一本很好的python的说明书,适合对python感兴趣的人
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>A.5 Obsolete </title>
<META NAME="description" CONTENT="A.5 Obsolete ">
<META NAME="keywords" CONTENT="lib">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="lib.css" tppabs="http://www.python.org/doc/current/lib/lib.css">
<LINK REL="next" HREF="node427.html" tppabs="http://www.python.org/doc/current/lib/node427.html">
<LINK REL="previous" HREF="node425.html" tppabs="http://www.python.org/doc/current/lib/node425.html">
<LINK REL="up" href="undoc.html" tppabs="http://www.python.org/doc/current/lib/undoc.html">
<LINK REL="next" HREF="node427.html" tppabs="http://www.python.org/doc/current/lib/node427.html">
</head>
<body>
<DIV CLASS="navigation"><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A HREF="node425.html" tppabs="http://www.python.org/doc/current/lib/node425.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A href="undoc.html" tppabs="http://www.python.org/doc/current/lib/undoc.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A HREF="node427.html" tppabs="http://www.python.org/doc/current/lib/node427.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
  alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
  alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
  alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" HREF="node425.html" tppabs="http://www.python.org/doc/current/lib/node425.html">A.4 Multimedia</A>
<b class="navlabel">Up:</b> <a class="sectref" href="undoc.html" tppabs="http://www.python.org/doc/current/lib/undoc.html">A. Undocumented Modules</A>
<b class="navlabel">Next:</b> <a class="sectref" HREF="node427.html" tppabs="http://www.python.org/doc/current/lib/node427.html">A.6 SGI-specific Extension modules</A>
<br><hr></DIV>
<!--End of Navigation Panel-->

<H1>
<BR>
A.5 Obsolete 
</H1>

<P>
These modules are not normally available for import; additional work
must be done to make them available.

<P>
Those which are written in Python will be installed into the directory 
<span class="file">lib-old/</span> installed as part of the standard library.  To use
these, the directory must be added to <code>sys.path</code>, possibly using
<a class="envvar" name='l2h-3324'>$PYTHONPATH</a>.

<P>
Obsolete extension modules written in C are not built by default.
Under Unix, these must be enabled by uncommenting the appropriate
lines in <span class="file">Modules/Setup</span> in the build tree and either rebuilding
Python if the modules are statically linked, or building and
installing the shared object if using dynamically-loaded extensions.

<P>
<DL>
<DT><STRONG><tt class="module">addpack</tt></STRONG></DT>
<DD>-- Alternate approach to packages.  Use the built-in package support
instead.

<P>
</DD>
<DT><STRONG><tt class="module">cmp</tt></STRONG></DT>
<DD>-- File comparison function.  Use the newer <tt class='module'><a href="module-filecmp.html" tppabs="http://www.python.org/doc/current/lib/module-filecmp.html">filecmp</a></tt> instead.

<P>
</DD>
<DT><STRONG><tt class="module">cmpcache</tt></STRONG></DT>
<DD>-- Caching version of the obsolete <tt class="module">cmp</tt> module.  Use the
newer <tt class='module'><a href="module-filecmp.html" tppabs="http://www.python.org/doc/current/lib/module-filecmp.html">filecmp</a></tt> instead.

<P>
</DD>
<DT><STRONG><tt class="module">codehack</tt></STRONG></DT>
<DD>-- Extract function name or line number from a function
code object (these are now accessible as attributes:
<tt class="member">co.co_name</tt>, <tt class="member">func.func_name</tt>,
<tt class="member">co.co_firstlineno</tt>).

<P>
</DD>
<DT><STRONG><tt class="module">dircmp</tt></STRONG></DT>
<DD>-- Class to build directory diff tools on (may become a demo or tool).
<b>Deprecated since release 2.0.</b>
The <tt class='module'><a href="module-filecmp.html" tppabs="http://www.python.org/doc/current/lib/module-filecmp.html">filecmp</a></tt> module replaces
<tt class="module">dircmp</tt>.<p>

<P>
</DD>
<DT><STRONG><tt class="module">dump</tt></STRONG></DT>
<DD>-- Print python code that reconstructs a variable.

<P>
</DD>
<DT><STRONG><tt class="module">fmt</tt></STRONG></DT>
<DD>-- Text formatting abstractions (too slow).

<P>
</DD>
<DT><STRONG><tt class="module">lockfile</tt></STRONG></DT>
<DD>-- Wrapper around FCNTL file locking (use
<tt class="function">fcntl.lockf()</tt>/<tt class="function">flock()</tt> instead; see <tt class='module'><a href="module-fcntl.html" tppabs="http://www.python.org/doc/current/lib/module-fcntl.html">fcntl</a></tt>).

<P>
</DD>
<DT><STRONG><tt class="module">newdir</tt></STRONG></DT>
<DD>-- New <tt class="function">dir()</tt> function (the standard <tt class="function">dir()</tt> is
now just as good).

<P>
</DD>
<DT><STRONG><tt class="module">Para</tt></STRONG></DT>
<DD>-- Helper for <tt class="module">fmt</tt>.

<P>
</DD>
<DT><STRONG><tt class="module">poly</tt></STRONG></DT>
<DD>-- Polynomials.

<P>
</DD>
<DT><STRONG><tt class="module">regex</tt></STRONG></DT>
<DD>-- Emacs-style regular expression support; may still be used in some
old code (extension module).  Refer to the
<em class='citetitle'><a
 href="javascript:if(confirm('http://www.python.org/doc/1.6/lib/module-regex.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.python.org/doc/1.6/lib/module-regex.html'" tppabs="http://www.python.org/doc/1.6/lib/module-regex.html"
 title='Python
1.6 Documentation'
 >Python
1.6 Documentation <img src="offsite.gif" tppabs="http://www.python.org/doc/current/icons/offsite.gif"
  border='0' class='offsitelink' height='15' width='17' alt='[off-site link]'
  ></a></em> for documentation.

<P>
</DD>
<DT><STRONG><tt class="module">regsub</tt></STRONG></DT>
<DD>-- Regular expression based string replacement utilities, for use
with <tt class="module">regex</tt> (extension module).  Refer to the
<em class='citetitle'><a
 href="javascript:if(confirm('http://www.python.org/doc/1.6/lib/module-regsub.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.python.org/doc/1.6/lib/module-regsub.html'" tppabs="http://www.python.org/doc/1.6/lib/module-regsub.html"
 title='Python
1.6 Documentation'
 >Python
1.6 Documentation <img src="offsite.gif" tppabs="http://www.python.org/doc/current/icons/offsite.gif"
  border='0' class='offsitelink' height='15' width='17' alt='[off-site link]'
  ></a></em> for documentation.

<P>
</DD>
<DT><STRONG><tt class="module">tb</tt></STRONG></DT>
<DD>-- Print tracebacks, with a dump of local variables (use
<tt class="function">pdb.pm()</tt> or <tt class='module'><a href="module-traceback.html" tppabs="http://www.python.org/doc/current/lib/module-traceback.html">traceback</a></tt> instead).

<P>
</DD>
<DT><STRONG><tt class="module">timing</tt></STRONG></DT>
<DD>-- Measure time intervals to high resolution (use
<tt class="function">time.clock()</tt> instead).  (This is an extension module.)

<P>
</DD>
<DT><STRONG><tt class="module">util</tt></STRONG></DT>
<DD>-- Useful functions that don't fit elsewhere.

<P>
</DD>
<DT><STRONG><tt class="module">whatsound</tt></STRONG></DT>
<DD>-- Recognize sound files; use <tt class='module'><a href="module-sndhdr.html" tppabs="http://www.python.org/doc/current/lib/module-sndhdr.html">sndhdr</a></tt> instead.

<P>
</DD>
<DT><STRONG><tt class="module">zmod</tt></STRONG></DT>
<DD>-- Compute properties of mathematical ``fields.''
</DD>
</DL>

<P>
The following modules are obsolete, but are likely to re-surface as
tools or scripts:

<P>
<DL>
<DT><STRONG><tt class="module">find</tt></STRONG></DT>
<DD>-- Find files matching pattern in directory tree.

<P>
</DD>
<DT><STRONG><tt class="module">grep</tt></STRONG></DT>
<DD>-- <b class="program">grep</b> implementation in Python.

<P>
</DD>
<DT><STRONG><tt class="module">packmail</tt></STRONG></DT>
<DD>-- Create a self-unpacking Unix shell archive.
</DD>
</DL>

<P>
The following modules were documented in previous versions of this
manual, but are now considered obsolete.  The source for the
documentation is still available as part of the documentation source
archive.

<P>
<DL>
<DT><STRONG><tt class="module">ni</tt></STRONG></DT>
<DD>-- Import modules in ``packages.''  Basic package support is now
built in.  The built-in support is very similar to what is provided in
this module.

<P>
</DD>
<DT><STRONG><tt class="module">rand</tt></STRONG></DT>
<DD>-- Old interface to the random number generator.

<P>
</DD>
<DT><STRONG><tt class="module">soundex</tt></STRONG></DT>
<DD>-- Algorithm for collapsing names which sound similar to a shared
key.  The specific algorithm doesn't seem to match any published
algorithm.  (This is an extension module.)
</DD>
</DL>

<P>

<DIV CLASS="navigation"><p><hr><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A HREF="node425.html" tppabs="http://www.python.org/doc/current/lib/node425.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
  alt="Previous Page" width="32"></A></td>
<td><A href="undoc.html" tppabs="http://www.python.org/doc/current/lib/undoc.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
  alt="Up One Level" width="32"></A></td>
<td><A HREF="node427.html" tppabs="http://www.python.org/doc/current/lib/node427.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
  alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
  alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
  alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
  alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" HREF="node425.html" tppabs="http://www.python.org/doc/current/lib/node425.html">A.4 Multimedia</A>
<b class="navlabel">Up:</b> <a class="sectref" href="undoc.html" tppabs="http://www.python.org/doc/current/lib/undoc.html">A. Undocumented Modules</A>
<b class="navlabel">Next:</b> <a class="sectref" HREF="node427.html" tppabs="http://www.python.org/doc/current/lib/node427.html">A.6 SGI-specific Extension modules</A>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
<hr>See <i><a href="about.html" tppabs="http://www.python.org/doc/current/lib/about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -