Team Ai
Apppublic

parthtamu/rag-code-assistant

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
superseded.html362 linesDownload Raw Back to docs
1<!DOCTYPE html>2 3<html lang="en" data-content_root="../">4  <head>5    <meta charset="utf-8" />6    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />7<meta property="og:title" content="Superseded modules" />8<meta property="og:type" content="website" />9<meta property="og:url" content="https://docs.python.org/3/library/superseded.html" />10<meta property="og:site_name" content="Python documentation" />11<meta property="og:description" content="The modules described in this chapter have been superseded by other modules for most use cases, and are retained primarily to preserve backwards compatibility. Modules may appear in this chapter be..." />12<meta property="og:image:width" content="1146" />13<meta property="og:image:height" content="600" />14<meta property="og:image" content="https://docs.python.org/3.15/_images/social_previews/summary_library_superseded_abf0b7b2.png" />15<meta property="og:image:alt" content="The modules described in this chapter have been superseded by other modules for most use cases, and are retained primarily to preserve backwards compatibility. Modules may appear in this chapter be..." />16<meta name="description" content="The modules described in this chapter have been superseded by other modules for most use cases, and are retained primarily to preserve backwards compatibility. Modules may appear in this chapter be..." />17<meta name="twitter:card" content="summary_large_image" />18<meta name="theme-color" content="#3776ab">19 20    <title>Superseded modules &#8212; Python 3.15.0a6 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">21    22    <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b86133f3" />23    <link rel="stylesheet" type="text/css" href="../_static/classic.css?v=234b1a7c" />24    <link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?v=89a2f22a" />25    <link rel="stylesheet" type="text/css" href="../_static/profiling-sampling-visualization.css?v=0c2600ae" />26    <link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="../_static/pygments_dark.css?v=5349f25f" />27    28    <script src="../_static/documentation_options.js?v=6b7c9ff5"></script>29    <script src="../_static/doctools.js?v=9bcbadda"></script>30    <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>31    <script src="../_static/profiling-sampling-visualization.js?v=9811ed04"></script>32    33    <script src="../_static/sidebar.js"></script>34    35    <link rel="search" type="application/opensearchdescription+xml"36          title="Search within Python 3.15.0a6 documentation"37          href="../_static/opensearch.xml"/>38    <link rel="author" title="About these documents" href="../about.html" />39    <link rel="index" title="Index" href="../genindex.html" />40    <link rel="search" title="Search" href="../search.html" />41    <link rel="copyright" title="Copyright" href="../copyright.html" />42    <link rel="next" title="getopt — C-style parser for command line options" href="getopt.html" />43    <link rel="prev" title="Modules command-line interface (CLI)" href="cmdline.html" />44    45      46      <script defer file-types="bz2,epub,zip" data-domain="docs.python.org" src="https://analytics.python.org/js/script.file-downloads.outbound-links.js"></script>47      48      <link rel="canonical" href="https://docs.python.org/3/library/superseded.html">49      50    51 52    53    <style>54      @media only screen {55        table.full-width-table {56            width: 100%;57        }58      }59    </style>60<link rel="stylesheet" href="../_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">61    <link rel="shortcut icon" type="image/png" href="../_static/py.svg">62            <script type="text/javascript" src="../_static/copybutton.js"></script>63            <script type="text/javascript" src="../_static/menu.js"></script>64            <script type="text/javascript" src="../_static/search-focus.js"></script>65            <script type="text/javascript" src="../_static/themetoggle.js"></script> 66            <script type="text/javascript" src="../_static/rtd_switcher.js"></script>67            <meta name="readthedocs-addons-api-version" content="1">68 69  </head>70<body>71<div class="mobile-nav">72    <input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"73           aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu">74    <nav class="nav-content" role="navigation">75        <label for="menuToggler" class="toggler__label">76            <span></span>77        </label>78        <span class="nav-items-wrapper">79            <a href="https://www.python.org/" class="nav-logo">80                <img src="../_static/py.svg" alt="Python logo">81            </a>82            <span class="version_switcher_placeholder"></span>83            <form role="search" class="search" action="../search.html" method="get">84                <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">85                    <path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>86                </svg>87                <input placeholder="Quick search" aria-label="Quick search" type="search" name="q">88                <input type="submit" value="Go">89            </form>90        </span>91    </nav>92    <div class="menu-wrapper">93        <nav class="menu" role="navigation" aria-label="main navigation">94            <div class="language_switcher_placeholder"></div>95            96<label class="theme-selector-label">97    Theme98    <select class="theme-selector" oninput="activateTheme(this.value)">99        <option value="auto" selected>Auto</option>100        <option value="light">Light</option>101        <option value="dark">Dark</option>102    </select>103</label>104  <div>105    <h4>Previous topic</h4>106    <p class="topless"><a href="cmdline.html"107                          title="previous chapter">Modules command-line interface (CLI)</a></p>108  </div>109  <div>110    <h4>Next topic</h4>111    <p class="topless"><a href="getopt.html"112                          title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">getopt</span></code> — C-style parser for command line options</a></p>113  </div>114  <script>115    document.addEventListener('DOMContentLoaded', () => {116        const title = document.querySelector('meta[property="og:title"]').content;117        const elements = document.querySelectorAll('.improvepage');118        const pageurl = window.location.href.split('?')[0];119        elements.forEach(element => {120            const url = new URL(element.href.split('?')[0].replace("-nojs", ""));121            url.searchParams.set('pagetitle', title);122            url.searchParams.set('pageurl', pageurl);123            url.searchParams.set('pagesource', "library/superseded.rst");124            element.href = url.toString();125        });126    });127  </script>128  <div role="note" aria-label="source link">129    <h3>This page</h3>130    <ul class="this-page-menu">131      <li><a href="../bugs.html">Report a bug</a></li>132      <li><a class="improvepage" href="../improve-page-nojs.html">Improve this page</a></li>133      <li>134        <a href="https://github.com/python/cpython/blob/main/Doc/library/superseded.rst?plain=1"135            rel="nofollow">Show source136        </a>137      </li>138      139    </ul>140  </div>141        </nav>142    </div>143</div>144 145  146    <div class="related" role="navigation" aria-label="Related">147      <h3>Navigation</h3>148      <ul>149        <li class="right" style="margin-right: 10px">150          <a href="../genindex.html" title="General Index"151             accesskey="I">index</a></li>152        <li class="right" >153          <a href="../py-modindex.html" title="Python Module Index"154             >modules</a> |</li>155        <li class="right" >156          <a href="getopt.html" title="getopt — C-style parser for command line options"157             accesskey="N">next</a> |</li>158        <li class="right" >159          <a href="cmdline.html" title="Modules command-line interface (CLI)"160             accesskey="P">previous</a> |</li>161 162          <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"></li>163          <li><a href="https://www.python.org/">Python</a> &#187;</li>164          <li class="switchers">165            <div class="language_switcher_placeholder"></div>166            <div class="version_switcher_placeholder"></div>167          </li>168          <li>169              170          </li>171    <li id="cpython-language-and-version">172      <a href="../index.html">3.15.0a6 Documentation</a> &#187;173    </li>174 175          <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">The Python Standard Library</a> &#187;</li>176        <li class="nav-item nav-item-this"><a href="">Superseded modules</a></li>177                <li class="right">178                    179 180    <div class="inline-search" role="search">181        <form class="inline-search" action="../search.html" method="get">182          <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box">183          <input type="submit" value="Go">184        </form>185    </div>186                     |187                </li>188            <li class="right">189<label class="theme-selector-label">190    Theme191    <select class="theme-selector" oninput="activateTheme(this.value)">192        <option value="auto" selected>Auto</option>193        <option value="light">Light</option>194        <option value="dark">Dark</option>195    </select>196</label> |</li>197            198      </ul>199    </div>    200 201    <div class="document">202      <div class="documentwrapper">203        <div class="bodywrapper">204          <div class="body" role="main">205            206  <section id="superseded-modules">207<span id="superseded"></span><h1>Superseded modules<a class="headerlink" href="#superseded-modules" title="Link to this heading">¶</a></h1>208<p>The modules described in this chapter have been superseded by other modules209for most use cases, and are retained primarily to preserve backwards compatibility.</p>210<p>Modules may appear in this chapter because they only cover a limited subset of211a problem space, and a more generally applicable solution is available elsewhere212in the standard library (for example, <a class="reference internal" href="getopt.html#module-getopt" title="getopt: Portable parser for command line options; support both short and long option names."><code class="xref py py-mod docutils literal notranslate"><span class="pre">getopt</span></code></a> covers the very specific213task of “mimic the C <code class="xref c c-func docutils literal notranslate"><span class="pre">getopt()</span></code> API in Python”, rather than the broader214command line option parsing and argument parsing capabilities offered by215<a class="reference internal" href="optparse.html#module-optparse" title="optparse: Command-line option parsing library."><code class="xref py py-mod docutils literal notranslate"><span class="pre">optparse</span></code></a> and <a class="reference internal" href="argparse.html#module-argparse" title="argparse: Command-line option and argument parsing library."><code class="xref py py-mod docutils literal notranslate"><span class="pre">argparse</span></code></a>).</p>216<p>Alternatively, modules may appear in this chapter because they are deprecated217outright, and awaiting removal in a future release, or they are218<a class="reference internal" href="../glossary.html#term-soft-deprecated"><span class="xref std std-term">soft deprecated</span></a> and their use is actively discouraged in new projects.219With the removal of various obsolete modules through <span class="target" id="index-0"></span><a class="pep reference external" href="https://peps.python.org/pep-0594/"><strong>PEP 594</strong></a>, there are220currently no modules in this latter category.</p>221<div class="toctree-wrapper compound">222<ul>223<li class="toctree-l1"><a class="reference internal" href="getopt.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">getopt</span></code> — C-style parser for command line options</a></li>224<li class="toctree-l1"><a class="reference internal" href="profile.html"><code class="xref py py-mod docutils literal notranslate"><span class="pre">profile</span></code> — Pure Python profiler</a></li>225</ul>226</div>227</section>228 229 230            <div class="clearer"></div>231          </div>232        </div>233      </div>234      <div class="sphinxsidebar" role="navigation" aria-label="Main">235        <div class="sphinxsidebarwrapper">236  <div>237    <h4>Previous topic</h4>238    <p class="topless"><a href="cmdline.html"239                          title="previous chapter">Modules command-line interface (CLI)</a></p>240  </div>241  <div>242    <h4>Next topic</h4>243    <p class="topless"><a href="getopt.html"244                          title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">getopt</span></code> — C-style parser for command line options</a></p>245  </div>246  <script>247    document.addEventListener('DOMContentLoaded', () => {248        const title = document.querySelector('meta[property="og:title"]').content;249        const elements = document.querySelectorAll('.improvepage');250        const pageurl = window.location.href.split('?')[0];251        elements.forEach(element => {252            const url = new URL(element.href.split('?')[0].replace("-nojs", ""));253            url.searchParams.set('pagetitle', title);254            url.searchParams.set('pageurl', pageurl);255            url.searchParams.set('pagesource', "library/superseded.rst");256            element.href = url.toString();257        });258    });259  </script>260  <div role="note" aria-label="source link">261    <h3>This page</h3>262    <ul class="this-page-menu">263      <li><a href="../bugs.html">Report a bug</a></li>264      <li><a class="improvepage" href="../improve-page-nojs.html">Improve this page</a></li>265      <li>266        <a href="https://github.com/python/cpython/blob/main/Doc/library/superseded.rst?plain=1"267            rel="nofollow">Show source268        </a>269      </li>270      271    </ul>272  </div>273        </div>274<div id="sidebarbutton" title="Collapse sidebar">275<span>«</span>276</div>277 278      </div>279      <div class="clearer"></div>280    </div>  281    <div class="related" role="navigation" aria-label="Related">282      <h3>Navigation</h3>283      <ul>284        <li class="right" style="margin-right: 10px">285          <a href="../genindex.html" title="General Index"286             >index</a></li>287        <li class="right" >288          <a href="../py-modindex.html" title="Python Module Index"289             >modules</a> |</li>290        <li class="right" >291          <a href="getopt.html" title="getopt — C-style parser for command line options"292             >next</a> |</li>293        <li class="right" >294          <a href="cmdline.html" title="Modules command-line interface (CLI)"295             >previous</a> |</li>296 297          <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"></li>298          <li><a href="https://www.python.org/">Python</a> &#187;</li>299          <li class="switchers">300            <div class="language_switcher_placeholder"></div>301            <div class="version_switcher_placeholder"></div>302          </li>303          <li>304              305          </li>306    <li id="cpython-language-and-version">307      <a href="../index.html">3.15.0a6 Documentation</a> &#187;308    </li>309 310          <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>311        <li class="nav-item nav-item-this"><a href="">Superseded modules</a></li>312                <li class="right">313                    314 315    <div class="inline-search" role="search">316        <form class="inline-search" action="../search.html" method="get">317          <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box">318          <input type="submit" value="Go">319        </form>320    </div>321                     |322                </li>323            <li class="right">324<label class="theme-selector-label">325    Theme326    <select class="theme-selector" oninput="activateTheme(this.value)">327        <option value="auto" selected>Auto</option>328        <option value="light">Light</option>329        <option value="dark">Dark</option>330    </select>331</label> |</li>332            333      </ul>334    </div>  335    <div class="footer">336    &copy; <a href="../copyright.html">Copyright</a> 2001 Python Software Foundation.337    <br>338    This page is licensed under the Python Software Foundation License Version 2.339    <br>340    Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.341    <br>342    343      See <a href="/license.html">History and License</a> for more information.<br>344    345    346    <br>347 348    The Python Software Foundation is a non-profit corporation.349<a href="https://www.python.org/psf/donations/">Please donate.</a>350<br>351    <br>352      Last updated on Mar 10, 2026 (08:58 UTC).353    354      <a href="/bugs.html">Found a bug</a>?355    356    <br>357 358    Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.2.3.359    </div>360 361  </body>362</html>