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

📄 120.html

📁 Python Essential Reference, Second Edition
💻 HTML
📖 第 1 页 / 共 2 页
字号:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Robots" content="INDEX,NOFOLLOW">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<TITLE>Safari | Python Essential Reference, Second Edition -&gt; Undocumented Modules</TITLE>
<LINK REL="stylesheet" HREF="oreillyi/oreillyM.css">
</HEAD>
<BODY bgcolor="white" text="black" link="#990000" vlink="#990000" alink="#990000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="100%" cellpadding=5 cellspacing=0 border=0 class="navtopbg"><tr><td><font size="1"><p class="navtitle"><a href="2.html" class="navtitle">Linux/Unix</a> &gt; <a href="0735710910.html" class="navtitle">Python Essential Reference, Second Edition</a> &gt; <a href="105.html" class="navtitle">A. The Python Library</a> &gt; <span class="nonavtitle">Undocumented Modules</span></p></font></td><td align="right" valign="top" nowrap><font size="1"><a href="main.asp?list" class="safnavoff">See All Titles</a></font></td></tr></table>
<TABLE width=100% bgcolor=white border=0 cellspacing=0 cellpadding=5><TR><TD>
<TABLE border=0 width="100%" cellspacing=0 cellpadding=0><TR><td align=left width="15%" class="headingsubbarbg"><a href="119.html" title="The Python Profiler"><font size="1">&lt;&nbsp;BACK</font></a></td><td align=center width="70%" class="headingsubbarbg"><font size="1"><a href="popanote.asp?pubui=oreilly&bookname=0735710910&snode=120" target="_blank" title="Make a public or private annnotation">Make Note</a> | <a href="120.html" title="Use a Safari bookmark to remember this section">Bookmark</a></font></td><td align=right width="15%" class="headingsubbarbg"><a href="122.html" title="B. Extending and Embedding Python"><font size="1">CONTINUE&nbsp;&gt;</font></a></td></TR></TABLE>
<a href="5%2F28%2F2002+9%3A08%3A24+PM.html" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><font color=white size=1>155117184014003188065099048180054212144238241179195140058238111161105094192222208195166043</font><a href="read6.asp?bookname=0735710910&snode=120&now=5%2F28%2F2002+9%3A08%3A24+PM" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><br>
<FONT>
<h3>Undocumented Modules</h3>
<p>The modules listed in this section are not covered in detail in this book, but have descriptions in the online library reference and elsewhere.</p>


<H4>Python Services</H4>
<P><Table BORDer="1" ceLLSPacing="0" cellpadding="1" widtH="100%">
<coLgroUp spaN="2">
<tr>
<tH VALign="top">
<fONT Size="2">
<p><B>Module</B></P>
</Font></tH>
<TH Valign="top">
<font size="2">
<p><b>Description</b></p>
</fonT></th>
</Tr>
<tr>
<Td valIgn="top">
<fONT Size="2">
<p><TT CLass="monofont">code</tT></P>
</FOnt></td>
<TD VAlign="top">
<font size="2">
<p>Code object support</p>
</font></td>
</Tr>
<tR>
<td vAlign="top">
<Font SIZE="2">
<p><tt cLASS="monofont">codeop</tt></p>
</fONT></Td>
<td vALIGn="top">
<font size="2">
<p>Compiles Python code</p>
</font></td>
</tr>
<tR>
<td ValiGn="top">
<fonT sizE="2">
<P><TT clasS="monofont">compileall</TT></P>
</font></TD>
<TD valiGN="top">
<FOnt size="2">
<p>Byte-compiles Python files in a directory</p>
</font></td>
</tr>
<tr>
<td ValIgn="top">
<fOnt siZe="2">
<p><tT CLAss="monofont">dis</tt></P>
</FONt></td>
<tD VALign="top">
<fONT Size="2">
<p>Disassembler</p>
</font></td>
</tr>
<tr>
<td valIgn="top">
<Font Size="2">
<p><Tt clASS="monofont">fpectl</Tt></p>
</foNT></TD>
<td vaLIGN="top">
<font SIZE="2">
<p>Floating-point exception control</p>
</font></td>
</tr>
<tr>
<td valign="top">
<FonT sizE="2">
<p><tt cLass="monofont">imp</TT></P>
</Font></tD>
<TD ValigN="top">
<FONt sizE="2">
<P>Provides access to the implementation of the <TT class="monofont">import</tt>  statement</p>
</font></td>
</tr>
<tr>
<td ValIgn="top">
<fOnt siZe="2">
<p><tT CLAss="monofont">inspect</tt></P>
</FONt></td>
<tD VALign="top">
<fONT Size="2">
<p>Inspects live objects</p>
</font></td>
</tr>
<tr>
<td valIgn="top">
<Font Size="2">
<p><Tt clASS="monofont">keyword</Tt></p>
</foNT></TD>
<td vaLIGN="top">
<font SIZE="2">
<p>Tests whether a string is a Python keyword</p>
</font></td>
</tr>
<tr>
<td valign="top">
<FonT sizE="2">
<p><tt cLass="monofont">linecache</TT></P>
</Font></tD>
<TD ValigN="top">
<FONt sizE="2">
<P>Retrieves lines from files</P>
</Font></td>
</tr>
<tr>
<td valign="top">
<fonT siZe="2">
<p><tT clasS="monofont">parser</tt></p>
</FONT></td>
<td VALIgn="top">
<foNT SIze="2">
<p>Accesses parse-trees of Python source code</p>
</FONT></td>
</tr>
<tr>
<td valign="top">
<font siZe="2">
<p><Tt clAss="monofont">pprint</tt></P>
</fonT></TD>
<Td valIGN="top">
<Font sIZE="2">
<P>Prettyprinter for objects</p>
</fonT></TD>
</Tr>
<tr>
<td valign="top">
<font size="2">
<p><Tt cLass="monofont">pyclbr</Tt></p>
</foNt></td>
<TD VAlign="top">
<FONT size="2">
<P>Extracts information for class browsers</P>
</FOnt></td>
</TR>
<TR>
<td valign="top">
<font size="2">
<p><tt cLasS="monofont">py_compile</tt></p>
</Font></tD>
<td vALIGn="top">
<fonT SIZe="2">
<p>Compiles Python source to bytecode files</p>
</fONT></Td>
</tr>
<tR>
<TD Valign="top">
<font size="2">
<p><tt clasS="monofont">repr</tt></P>
</fonT></td>
<td ValiGN="top">
<FOnt siZE="2">
<P>Alternate implementation of the <Tt claSS="monofont">repr()</TT> function</p>
</fonT></TD>
</Tr>
<tr>
<td valign="top">
<font size="2">
<p><Tt cLass="monofont">symbol</Tt></p>
</foNt></td>
<TD VAlign="top">
<FONT size="2">
<P>Constants used to represent internal nodes of parse trees</P>
</FOnt></td>
</TR>
<TR>
<td valign="top">
<font size="2">
<p><tt cLasS="monofont">tabnanny</tt></p>
</Font></tD>
<td vALIGn="top">
<fonT SIZe="2">
<p>Detection of ambiguous indentation</p>
</fONT></Td>
</tr>
<tR>
<TD Valign="top">
<font size="2">
<p><tt clasS="monofont">token</tt></P>
</fonT></td>
<td ValiGN="top">
<FOnt siZE="2">
<P>Terminal nodes of the parse tree</P>
</font></TD>
</TR>
<tr>
<td VALIgn="top">
<font size="2">
<p><tt class="monofont">tokenize</tt></P>
</foNt></td>
<Td valIgn="top">
<fONT Size="2">
<p>Scanner for Python source code</P>
</FONt></td>
</tR>
<TR>
<Td valIGN="top">
<Font size="2">
<p><tt class="monofont">user</tt></p>
</foNt></tD>
<td vAlign="top">
<Font SIZE="2">
<p>User configuration file parsing</p>
</foNT></TD>
</tr>
</coLGROup>
</taBLE></P>


<h4>String Processing</h4>
<p><table border="1" cellspAciNg="0" ceLlpadDing="1" WIDTh="100%">
<colGROUp spaN="2">
<TR>
<Th valIGN="top">
<Font size="2">
<p><b>Module</b></p>
</font></th>
<th vAliGn="top">
<foNt sizE="2">
<p><b>Description</b></P>
</FONt></th>
</tR>
<TR>
<Td valIGN="top">
<Font sIZE="2">
<P><tt class="monofont">difflib</tt></p>
</font></td>
<td vaLigN="top">
<fonT size="2">
<P>Functions for computing deltas</p>
</foNT></TD>
</tr>
<tr>
<TD VAlign="top">
<FONT size="2">
<P><TT Class="monofont">fpformat</tt></p>
</font></td>
<td valigN="top">
<foNt siZe="2">
<p>Floating-point number formatting</p>
</fOnt></tD>
</TR>
<Tr>
<td vALIGn="top">
<fonT SIZe="2">
<p><tt CLASs="monofont">regex</tt></p>
</font></td>
<td valign="top">
<foNt sIze="2">
<p>Regular expression matching (obsolete)</P>
</font></Td>
</tr>
<TR>
<TD valiGN="top">
<FOnt siZE="2">
<P><Tt claSS="monofont">regsub</TT></p>
</font></td>
<td valign="top">
<font sIze="2">
<P>Regular expression substitution (obsolete)</p>
</foNt></td>
</tR>
</colGROUp>
</tabLE></P>


<H4>Operating System Modules</h4>
<p><taBLE BordeR="1" CELlspacing="0" cellpadding="1" wIdtH="100%">
<colGroup Span="2">
<TR>
<TH valiGN="top">
<FOnt siZE="2">
<P><B>Module</b></p>
</foNT></TH>
<th valign="top">
<font size="2">
<p><b>Description</b></p>
</FonT></th>
</tR>
<tr>
<td ValiGN="top">
<FOnt siZE="2">
<P><Tt claSS="monofont">curses</TT></p>
</fonT></TD>
<Td valign="top">
<font size="2">
<p>Curses library interface</p>
</fonT></td>
</Tr>
<tr>
<Td valIgn="top">
<fONT Size="2">
<p><TT CLass="monofont">dl</tT></P>
</FOnt></td>
<TD VAlign="top">
<font size="2">
<p>Access to UNIX shared libraries</p>
</font></td>
</Tr>
<tR>
<td vAlign="top">
<Font SIZE="2">
<p><tt cLASS="monofont">dircache</tt></p>
</fONT></Td>
<td vALIGn="top">
<font size="2">
<p>Directory cache</p>
</font></td>
</tr>
<tR>
<td ValiGn="top">
<fonT sizE="2">
<P><TT clasS="monofont">mutex</TT></P>
</font></TD>
<TD valiGN="top">
<FOnt size="2">
<p>Mutual exclusion locks</p>
</font></td>
</tr>
<tr>
<td ValIgn="top">
<fOnt siZe="2">
<p><tT CLAss="monofont">pty</tt></P>
</FONt></td>
<tD VALign="top">
<fONT Size="2">
<p>Pseudo-terminal handling</p>
</font></td>
</tr>
<tr>
<td valIgn="top">
<Font Size="2">
<p><Tt clASS="monofont">pipes</Tt></p>
</foNT></TD>
<td vaLIGN="top">
<font SIZE="2">
<p>Interface to shell pipelines</p>
</font></td>
</tr>
<tr>
<td valign="top">
<FonT sizE="2">
<p><tt cLass="monofont">posixfile</TT></P>
</Font></tD>
<TD ValigN="top">
<FONt sizE="2">
<P>File locking</P>
</Font></td>
</tr>
<tr>
<td valign="top">
<fonT siZe="2">
<p><tT clasS="monofont">nis</tt></p>
</FONT></td>
<td VALIgn="top">
<foNT SIze="2">
<p>Interface to Sun抯 NIS</p>
</FONT></td>
</tr>
<tr>
<td valign="top">
<font siZe="2">
<p><Tt clAss="monofont">rlcompleter</tt></P>
</fonT></TD>
<Td valIGN="top">
<Font sIZE="2">
<P>Completion function for GNU <tt clASS="monofont">readline</Tt></p>
</font></td>
</tr>
<tr>
<td valign="top">
<FonT sizE="2">
<p><tt cLass="monofont">sched</TT></P>
</Font></tD>
<TD ValigN="top">
<FONt sizE="2">
<P>Event scheduler</P>
</Font></td>
</tr>
<tr>
<td valign="top">
<fonT siZe="2">
<p><tT clasS="monofont">statcache</tt></p>
</FONT></td>
<td VALIgn="top">
<foNT SIze="2">
<p>Caching version of <tT CLAss="monofont">stat()</tt> function</p>
</font></td>
</tr>
<tr>
<td valIgn="top">
<Font Size="2">
<p><Tt clASS="monofont">syslog</Tt></p>
</foNT></TD>
<td vaLIGN="top">
<font SIZE="2">
<p>Interface to UNIX syslog daemon</p>
</font></td>
</tr>
</colgroup>
</taBle></P>


<h4>Network</h4>
<p><Table BordER="1" CEllspACINg="0" celLPADding="1" WIDTh="100%">
<colgroup span="2">
<tr>
<th valIgn="top">
<Font Size="2">
<p><B>Module</b></p>
</fONT></Th>
<th vALIGn="top">
<fonT SIZe="2">
<p><b>Description</b></P>
</FONt></th>
</tr>
<tr>
<td valign="top">
<font sIze="2">
<P><tt cLass="monofont">gopherlib</tT></p>
</foNT></TD>
<td vaLIGN="top">
<font SIZE="2">
<p>Gopher protocol</p>
</foNT></TD>
</tr>
<tr>
<td valign="top">
<font size="2">
<P><tt ClasS="monofont">telnetlib</tt></p>
</fOnt></tD>
<TD ValigN="top">
<FONt sizE="2">
<P>Telnet protocol</P>
</Font></tD>
</TR>
<Tr>
<td valign="top">

⌨️ 快捷键说明

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