| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <link rel="STYLESHEET" href="lib.css" type='text/css' /> |
| 5 | <link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" /> |
| 6 | <link rel='start' href='../index.html' title='Python Documentation Index' /> |
| 7 | <link rel="first" href="lib.html" title='Python Library Reference' /> |
| 8 | <link rel='contents' href='contents.html' title="Contents" /> |
| 9 | <link rel='index' href='genindex.html' title='Index' /> |
| 10 | <link rel='last' href='about.html' title='About this document...' /> |
| 11 | <link rel='help' href='about.html' title='About this document...' /> |
| 12 | <link rel="next" href="allos.html" /> |
| 13 | <link rel="prev" href="strings.html" /> |
| 14 | <link rel="parent" href="lib.html" /> |
| 15 | <link rel="next" href="module-pydoc.html" /> |
| 16 | <meta name='aesop' content='information' /> |
| 17 | <title>5. Miscellaneous Services</title> |
| 18 | </head> |
| 19 | <body> |
| 20 | <DIV CLASS="navigation"> |
| 21 | <div id='top-navigation-panel' xml:id='top-navigation-panel'> |
| 22 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 23 | <tr> |
| 24 | <td class='online-navigation'><a rel="prev" title="4.11 stringprep " |
| 25 | href="module-stringprep.html"><img src='../icons/previous.png' |
| 26 | border='0' height='32' alt='Previous Page' width='32' /></A></td> |
| 27 | <td class='online-navigation'><a rel="parent" title="Python Library Reference" |
| 28 | href="lib.html"><img src='../icons/up.png' |
| 29 | border='0' height='32' alt='Up One Level' width='32' /></A></td> |
| 30 | <td class='online-navigation'><a rel="next" title="5.1 pydoc " |
| 31 | href="module-pydoc.html"><img src='../icons/next.png' |
| 32 | border='0' height='32' alt='Next Page' width='32' /></A></td> |
| 33 | <td align="center" width="100%">Python Library Reference</td> |
| 34 | <td class='online-navigation'><a rel="contents" title="Table of Contents" |
| 35 | href="contents.html"><img src='../icons/contents.png' |
| 36 | border='0' height='32' alt='Contents' width='32' /></A></td> |
| 37 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' |
| 38 | border='0' height='32' alt='Module Index' width='32' /></a></td> |
| 39 | <td class='online-navigation'><a rel="index" title="Index" |
| 40 | href="genindex.html"><img src='../icons/index.png' |
| 41 | border='0' height='32' alt='Index' width='32' /></A></td> |
| 42 | </tr></table> |
| 43 | <div class='online-navigation'> |
| 44 | <b class="navlabel">Previous:</b> |
| 45 | <a class="sectref" rel="prev" href="module-stringprep.html">4.11 stringprep </A> |
| 46 | <b class="navlabel">Up:</b> |
| 47 | <a class="sectref" rel="parent" href="lib.html">Python Library Reference</A> |
| 48 | <b class="navlabel">Next:</b> |
| 49 | <a class="sectref" rel="next" href="module-pydoc.html">5.1 pydoc </A> |
| 50 | </div> |
| 51 | <hr /></div> |
| 52 | </DIV> |
| 53 | <!--End of Navigation Panel--> |
| 54 | |
| 55 | <H1><A NAME="SECTION007000000000000000000"></A> |
| 56 | <A NAME="misc"></A> |
| 57 | <BR> |
| 58 | 5. Miscellaneous Services |
| 59 | </H1> |
| 60 | |
| 61 | <P> |
| 62 | The modules described in this chapter provide miscellaneous services |
| 63 | that are available in all Python versions. Here's an overview: |
| 64 | |
| 65 | <P> |
| 66 | <table class='synopsistable' valign='baseline'> |
| 67 | <tr class='oddrow'> |
| 68 | <td><b><tt class='module'><a href='module-pydoc.html'>pydoc</a></tt></b></td> |
| 69 | <td> </td> |
| 70 | <td class='synopsis'>Documentation generator and online help system.</td></tr> |
| 71 | <tr><td><b><tt class='module'><a href='module-doctest.html'>doctest</a></tt></b></td> |
| 72 | <td> </td> |
| 73 | <td class='synopsis'>A framework for verifying interactive Python examples.</td></tr> |
| 74 | <tr class='oddrow'> |
| 75 | <td><b><tt class='module'><a href='module-unittest.html'>unittest</a></tt></b></td> |
| 76 | <td> </td> |
| 77 | <td class='synopsis'>Unit testing framework for Python.</td></tr> |
| 78 | <tr><td><b><tt class='module'><a href='module-test.html'>test</a></tt></b></td> |
| 79 | <td> </td> |
| 80 | <td class='synopsis'>Regression tests package containing the testing suite |
| 81 | for Python.</td></tr> |
| 82 | <tr class='oddrow'> |
| 83 | <td><b><tt class='module'><a href='module-test.testsupport.html'>test.test_support</a></tt></b></td> |
| 84 | <td> </td> |
| 85 | <td class='synopsis'>Support for Python regression tests.</td></tr> |
| 86 | <tr><td><b><tt class='module'><a href='module-decimal.html'>decimal</a></tt></b></td> |
| 87 | <td> </td> |
| 88 | <td class='synopsis'>Implementation of the General Decimal Arithmetic |
| 89 | Specification.</td></tr> |
| 90 | <tr class='oddrow'> |
| 91 | <td><b><tt class='module'><a href='module-math.html'>math</a></tt></b></td> |
| 92 | <td> </td> |
| 93 | <td class='synopsis'>Mathematical functions (<tt class="function">sin()</tt> etc.).</td></tr> |
| 94 | <tr><td><b><tt class='module'><a href='module-cmath.html'>cmath</a></tt></b></td> |
| 95 | <td> </td> |
| 96 | <td class='synopsis'>Mathematical functions for complex numbers.</td></tr> |
| 97 | <tr class='oddrow'> |
| 98 | <td><b><tt class='module'><a href='module-random.html'>random</a></tt></b></td> |
| 99 | <td> </td> |
| 100 | <td class='synopsis'>Generate pseudo-random numbers with various common |
| 101 | distributions.</td></tr> |
| 102 | <tr><td><b><tt class='module'><a href='module-whrandom.html'>whrandom</a></tt></b></td> |
| 103 | <td> </td> |
| 104 | <td class='synopsis'>Floating point pseudo-random number generator.</td></tr> |
| 105 | <tr class='oddrow'> |
| 106 | <td><b><tt class='module'><a href='module-bisect.html'>bisect</a></tt></b></td> |
| 107 | <td> </td> |
| 108 | <td class='synopsis'>Array bisection algorithms for binary searching.</td></tr> |
| 109 | <tr><td><b><tt class='module'><a href='module-collections.html'>collections</a></tt></b></td> |
| 110 | <td> </td> |
| 111 | <td class='synopsis'>High-performance datatypes</td></tr> |
| 112 | <tr class='oddrow'> |
| 113 | <td><b><tt class='module'><a href='module-heapq.html'>heapq</a></tt></b></td> |
| 114 | <td> </td> |
| 115 | <td class='synopsis'>Heap queue algorithm (a.k.a. priority queue).</td></tr> |
| 116 | <tr><td><b><tt class='module'><a href='module-array.html'>array</a></tt></b></td> |
| 117 | <td> </td> |
| 118 | <td class='synopsis'>Efficient arrays of uniformly typed numeric values.</td></tr> |
| 119 | <tr class='oddrow'> |
| 120 | <td><b><tt class='module'><a href='module-sets.html'>sets</a></tt></b></td> |
| 121 | <td> </td> |
| 122 | <td class='synopsis'>Implementation of sets of unique elements.</td></tr> |
| 123 | <tr><td><b><tt class='module'><a href='module-itertools.html'>itertools</a></tt></b></td> |
| 124 | <td> </td> |
| 125 | <td class='synopsis'>Functions creating iterators for efficient looping.</td></tr> |
| 126 | <tr class='oddrow'> |
| 127 | <td><b><tt class='module'><a href='module-ConfigParser.html'>ConfigParser</a></tt></b></td> |
| 128 | <td> </td> |
| 129 | <td class='synopsis'>Configuration file parser.</td></tr> |
| 130 | <tr><td><b><tt class='module'><a href='module-fileinput.html'>fileinput</a></tt></b></td> |
| 131 | <td> </td> |
| 132 | <td class='synopsis'>Perl-like iteration over lines from multiple input |
| 133 | streams, with ``save in place'' capability.</td></tr> |
| 134 | <tr class='oddrow'> |
| 135 | <td><b><tt class='module'><a href='module-calendar.html'>calendar</a></tt></b></td> |
| 136 | <td> </td> |
| 137 | <td class='synopsis'>Functions for working with calendars, |
| 138 | including some emulation of the <span class="Unix">Unix</span> <b class="program">cal</b> |
| 139 | program.</td></tr> |
| 140 | <tr><td><b><tt class='module'><a href='module-cmd.html'>cmd</a></tt></b></td> |
| 141 | <td> </td> |
| 142 | <td class='synopsis'>Build line-oriented command interpreters.</td></tr> |
| 143 | <tr class='oddrow'> |
| 144 | <td><b><tt class='module'><a href='module-shlex.html'>shlex</a></tt></b></td> |
| 145 | <td> </td> |
| 146 | <td class='synopsis'>Simple lexical analysis for <span class="Unix">Unix</span> shell-like languages.</td></tr> |
| 147 | </table> |
| 148 | |
| 149 | <BR> |
| 150 | <DIV CLASS="navigation"> |
| 151 | <div class='online-navigation'> |
| 152 | <p></p><hr /> |
| 153 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 154 | <tr> |
| 155 | <td class='online-navigation'><a rel="prev" title="4.11 stringprep " |
| 156 | href="module-stringprep.html"><img src='../icons/previous.png' |
| 157 | border='0' height='32' alt='Previous Page' width='32' /></A></td> |
| 158 | <td class='online-navigation'><a rel="parent" title="Python Library Reference" |
| 159 | href="lib.html"><img src='../icons/up.png' |
| 160 | border='0' height='32' alt='Up One Level' width='32' /></A></td> |
| 161 | <td class='online-navigation'><a rel="next" title="5.1 pydoc " |
| 162 | href="module-pydoc.html"><img src='../icons/next.png' |
| 163 | border='0' height='32' alt='Next Page' width='32' /></A></td> |
| 164 | <td align="center" width="100%">Python Library Reference</td> |
| 165 | <td class='online-navigation'><a rel="contents" title="Table of Contents" |
| 166 | href="contents.html"><img src='../icons/contents.png' |
| 167 | border='0' height='32' alt='Contents' width='32' /></A></td> |
| 168 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' |
| 169 | border='0' height='32' alt='Module Index' width='32' /></a></td> |
| 170 | <td class='online-navigation'><a rel="index" title="Index" |
| 171 | href="genindex.html"><img src='../icons/index.png' |
| 172 | border='0' height='32' alt='Index' width='32' /></A></td> |
| 173 | </tr></table> |
| 174 | <div class='online-navigation'> |
| 175 | <b class="navlabel">Previous:</b> |
| 176 | <a class="sectref" rel="prev" href="module-stringprep.html">4.11 stringprep </A> |
| 177 | <b class="navlabel">Up:</b> |
| 178 | <a class="sectref" rel="parent" href="lib.html">Python Library Reference</A> |
| 179 | <b class="navlabel">Next:</b> |
| 180 | <a class="sectref" rel="next" href="module-pydoc.html">5.1 pydoc </A> |
| 181 | </div> |
| 182 | </div> |
| 183 | <hr /> |
| 184 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> |
| 185 | </DIV> |
| 186 | <!--End of Navigation Panel--> |
| 187 | <ADDRESS> |
| 188 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. |
| 189 | </ADDRESS> |
| 190 | </BODY> |
| 191 | </HTML> |