1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
<html xmlns="http://www.w3.org/1999/xhtml">
7
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
<title>36. Superseded Modules — Python 3.5.2 documentation</title>
11
<link rel="stylesheet" href="../_static/pydoctheme.css" type="text/css" />
12
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
14
<script type="text/javascript">
15
var DOCUMENTATION_OPTIONS = {
18
COLLAPSE_INDEX: false,
23
<script type="text/javascript" src="../_static/jquery.js"></script>
24
<script type="text/javascript" src="../_static/underscore.js"></script>
25
<script type="text/javascript" src="../_static/doctools.js"></script>
26
<script type="text/javascript" src="../_static/sidebar.js"></script>
27
<link rel="search" type="application/opensearchdescription+xml"
28
title="Search within Python 3.5.2 documentation"
29
href="../_static/opensearch.xml"/>
30
<link rel="author" title="About these documents" href="../about.html" />
31
<link rel="copyright" title="Copyright" href="../copyright.html" />
32
<link rel="top" title="Python 3.5.2 documentation" href="../contents.html" />
33
<link rel="up" title="The Python Standard Library" href="index.html" />
34
<link rel="next" title="36.1. optparse — Parser for command line options" href="optparse.html" />
35
<link rel="prev" title="35.13. syslog — Unix syslog library routines" href="syslog.html" />
36
<link rel="shortcut icon" type="image/png" href="../_static/py.png" />
38
<script type="text/javascript" src="../_static/copybutton.js"></script>
39
<script type="text/javascript" src="../_static/version_switch.js"></script>
45
<body role="document">
46
<div class="related" role="navigation" aria-label="related navigation">
49
<li class="right" style="margin-right: 10px">
50
<a href="../genindex.html" title="General Index"
51
accesskey="I">index</a></li>
53
<a href="../py-modindex.html" title="Python Module Index"
56
<a href="optparse.html" title="36.1. optparse — Parser for command line options"
57
accesskey="N">next</a> |</li>
59
<a href="syslog.html" title="35.13. syslog — Unix syslog library routines"
60
accesskey="P">previous</a> |</li>
61
<li><img src="../_static/py.png" alt=""
62
style="vertical-align: middle; margin-top: -1px"/></li>
63
<li><a href="https://www.python.org/">Python</a> »</li>
65
<span class="version_switcher_placeholder">3.5.2</span>
66
<a href="../index.html">Documentation </a> »
69
<li class="nav-item nav-item-1"><a href="index.html" accesskey="U">The Python Standard Library</a> »</li>
73
<div class="inline-search" style="display: none" role="search">
74
<form class="inline-search" action="../search.html" method="get">
75
<input placeholder="Quick search" type="text" name="q" />
76
<input type="submit" value="Go" />
77
<input type="hidden" name="check_keywords" value="yes" />
78
<input type="hidden" name="area" value="default" />
81
<script type="text/javascript">$('.inline-search').show(0);</script>
88
<div class="document">
89
<div class="documentwrapper">
90
<div class="bodywrapper">
91
<div class="body" role="main">
93
<div class="section" id="superseded-modules">
94
<span id="superseded"></span><h1>36. Superseded Modules<a class="headerlink" href="#superseded-modules" title="Permalink to this headline">¶</a></h1>
95
<p>The modules described in this chapter are deprecated and only kept for
96
backwards compatibility. They have been superseded by other modules.</p>
97
<div class="toctree-wrapper compound">
99
<li class="toctree-l1"><a class="reference internal" href="optparse.html">36.1. <code class="docutils literal"><span class="pre">optparse</span></code> — Parser for command line options</a><ul>
100
<li class="toctree-l2"><a class="reference internal" href="optparse.html#background">36.1.1. Background</a><ul>
101
<li class="toctree-l3"><a class="reference internal" href="optparse.html#terminology">36.1.1.1. Terminology</a></li>
102
<li class="toctree-l3"><a class="reference internal" href="optparse.html#what-are-options-for">36.1.1.2. What are options for?</a></li>
103
<li class="toctree-l3"><a class="reference internal" href="optparse.html#what-are-positional-arguments-for">36.1.1.3. What are positional arguments for?</a></li>
106
<li class="toctree-l2"><a class="reference internal" href="optparse.html#tutorial">36.1.2. Tutorial</a><ul>
107
<li class="toctree-l3"><a class="reference internal" href="optparse.html#understanding-option-actions">36.1.2.1. Understanding option actions</a></li>
108
<li class="toctree-l3"><a class="reference internal" href="optparse.html#the-store-action">36.1.2.2. The store action</a></li>
109
<li class="toctree-l3"><a class="reference internal" href="optparse.html#handling-boolean-flag-options">36.1.2.3. Handling boolean (flag) options</a></li>
110
<li class="toctree-l3"><a class="reference internal" href="optparse.html#other-actions">36.1.2.4. Other actions</a></li>
111
<li class="toctree-l3"><a class="reference internal" href="optparse.html#default-values">36.1.2.5. Default values</a></li>
112
<li class="toctree-l3"><a class="reference internal" href="optparse.html#generating-help">36.1.2.6. Generating help</a><ul>
113
<li class="toctree-l4"><a class="reference internal" href="optparse.html#grouping-options">36.1.2.6.1. Grouping Options</a></li>
116
<li class="toctree-l3"><a class="reference internal" href="optparse.html#printing-a-version-string">36.1.2.7. Printing a version string</a></li>
117
<li class="toctree-l3"><a class="reference internal" href="optparse.html#how-optparse-handles-errors">36.1.2.8. How <code class="docutils literal"><span class="pre">optparse</span></code> handles errors</a></li>
118
<li class="toctree-l3"><a class="reference internal" href="optparse.html#putting-it-all-together">36.1.2.9. Putting it all together</a></li>
121
<li class="toctree-l2"><a class="reference internal" href="optparse.html#reference-guide">36.1.3. Reference Guide</a><ul>
122
<li class="toctree-l3"><a class="reference internal" href="optparse.html#creating-the-parser">36.1.3.1. Creating the parser</a></li>
123
<li class="toctree-l3"><a class="reference internal" href="optparse.html#populating-the-parser">36.1.3.2. Populating the parser</a></li>
124
<li class="toctree-l3"><a class="reference internal" href="optparse.html#defining-options">36.1.3.3. Defining options</a></li>
125
<li class="toctree-l3"><a class="reference internal" href="optparse.html#option-attributes">36.1.3.4. Option attributes</a></li>
126
<li class="toctree-l3"><a class="reference internal" href="optparse.html#standard-option-actions">36.1.3.5. Standard option actions</a></li>
127
<li class="toctree-l3"><a class="reference internal" href="optparse.html#standard-option-types">36.1.3.6. Standard option types</a></li>
128
<li class="toctree-l3"><a class="reference internal" href="optparse.html#parsing-arguments">36.1.3.7. Parsing arguments</a></li>
129
<li class="toctree-l3"><a class="reference internal" href="optparse.html#querying-and-manipulating-your-option-parser">36.1.3.8. Querying and manipulating your option parser</a></li>
130
<li class="toctree-l3"><a class="reference internal" href="optparse.html#conflicts-between-options">36.1.3.9. Conflicts between options</a></li>
131
<li class="toctree-l3"><a class="reference internal" href="optparse.html#cleanup">36.1.3.10. Cleanup</a></li>
132
<li class="toctree-l3"><a class="reference internal" href="optparse.html#other-methods">36.1.3.11. Other methods</a></li>
135
<li class="toctree-l2"><a class="reference internal" href="optparse.html#option-callbacks">36.1.4. Option Callbacks</a><ul>
136
<li class="toctree-l3"><a class="reference internal" href="optparse.html#defining-a-callback-option">36.1.4.1. Defining a callback option</a></li>
137
<li class="toctree-l3"><a class="reference internal" href="optparse.html#how-callbacks-are-called">36.1.4.2. How callbacks are called</a></li>
138
<li class="toctree-l3"><a class="reference internal" href="optparse.html#raising-errors-in-a-callback">36.1.4.3. Raising errors in a callback</a></li>
139
<li class="toctree-l3"><a class="reference internal" href="optparse.html#callback-example-1-trivial-callback">36.1.4.4. Callback example 1: trivial callback</a></li>
140
<li class="toctree-l3"><a class="reference internal" href="optparse.html#callback-example-2-check-option-order">36.1.4.5. Callback example 2: check option order</a></li>
141
<li class="toctree-l3"><a class="reference internal" href="optparse.html#callback-example-3-check-option-order-generalized">36.1.4.6. Callback example 3: check option order (generalized)</a></li>
142
<li class="toctree-l3"><a class="reference internal" href="optparse.html#callback-example-4-check-arbitrary-condition">36.1.4.7. Callback example 4: check arbitrary condition</a></li>
143
<li class="toctree-l3"><a class="reference internal" href="optparse.html#callback-example-5-fixed-arguments">36.1.4.8. Callback example 5: fixed arguments</a></li>
144
<li class="toctree-l3"><a class="reference internal" href="optparse.html#callback-example-6-variable-arguments">36.1.4.9. Callback example 6: variable arguments</a></li>
147
<li class="toctree-l2"><a class="reference internal" href="optparse.html#extending-optparse">36.1.5. Extending <code class="docutils literal"><span class="pre">optparse</span></code></a><ul>
148
<li class="toctree-l3"><a class="reference internal" href="optparse.html#adding-new-types">36.1.5.1. Adding new types</a></li>
149
<li class="toctree-l3"><a class="reference internal" href="optparse.html#adding-new-actions">36.1.5.2. Adding new actions</a></li>
154
<li class="toctree-l1"><a class="reference internal" href="imp.html">36.2. <code class="docutils literal"><span class="pre">imp</span></code> — Access the <code class="docutils literal"><span class="pre">import</span></code> internals</a><ul>
155
<li class="toctree-l2"><a class="reference internal" href="imp.html#examples">36.2.1. Examples</a></li>
166
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
167
<div class="sphinxsidebarwrapper">
168
<h4>Previous topic</h4>
169
<p class="topless"><a href="syslog.html"
170
title="previous chapter">35.13. <code class="docutils literal"><span class="pre">syslog</span></code> — Unix syslog library routines</a></p>
172
<p class="topless"><a href="optparse.html"
173
title="next chapter">36.1. <code class="docutils literal"><span class="pre">optparse</span></code> — Parser for command line options</a></p>
174
<div role="note" aria-label="source link">
176
<ul class="this-page-menu">
177
<li><a href="../bugs.html">Report a Bug</a></li>
178
<li><a href="../_sources/library/superseded.txt"
179
rel="nofollow">Show Source</a></li>
184
<div class="clearer"></div>
186
<div class="related" role="navigation" aria-label="related navigation">
189
<li class="right" style="margin-right: 10px">
190
<a href="../genindex.html" title="General Index"
193
<a href="../py-modindex.html" title="Python Module Index"
196
<a href="optparse.html" title="36.1. optparse — Parser for command line options"
199
<a href="syslog.html" title="35.13. syslog — Unix syslog library routines"
201
<li><img src="../_static/py.png" alt=""
202
style="vertical-align: middle; margin-top: -1px"/></li>
203
<li><a href="https://www.python.org/">Python</a> »</li>
205
<span class="version_switcher_placeholder">3.5.2</span>
206
<a href="../index.html">Documentation </a> »
209
<li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> »</li>
213
<div class="inline-search" style="display: none" role="search">
214
<form class="inline-search" action="../search.html" method="get">
215
<input placeholder="Quick search" type="text" name="q" />
216
<input type="submit" value="Go" />
217
<input type="hidden" name="check_keywords" value="yes" />
218
<input type="hidden" name="area" value="default" />
221
<script type="text/javascript">$('.inline-search').show(0);</script>
228
© <a href="../copyright.html">Copyright</a> 2001-2016, Python Software Foundation.
230
The Python Software Foundation is a non-profit corporation.
231
<a href="https://www.python.org/psf/donations/">Please donate.</a>
233
Last updated on Oct 19, 2016.
234
<a href="../bugs.html">Found a bug</a>?
236
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.3.
b'\\ No newline at end of file'