index.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>3.12.0 Documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <link rel="stylesheet" type="text/css" href="_static/pygments.css" />
  7. <link rel="stylesheet" type="text/css" href="_static/pydoctheme.css?digest=b37c26da2f7529d09fe70b41c4b2133fe4931a90" />
  8. <link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="_static/pygments_dark.css" />
  9. <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
  10. <script src="_static/jquery.js"></script>
  11. <script src="_static/underscore.js"></script>
  12. <script src="_static/doctools.js"></script>
  13. <script src="_static/sidebar.js"></script>
  14. <link rel="search" type="application/opensearchdescription+xml"
  15. title="Search within Python 3.12.0 documentation"
  16. href="_static/opensearch.xml"/>
  17. <link rel="author" title="About these documents" href="about.html" />
  18. <link rel="index" title="Index" href="genindex.html" />
  19. <link rel="search" title="Search" href="search.html" />
  20. <link rel="copyright" title="Copyright" href="copyright.html" />
  21. <link rel="canonical" href="https://docs.python.org/3/index.html" />
  22. <style>
  23. @media only screen {
  24. table.full-width-table {
  25. width: 100%;
  26. }
  27. }
  28. </style>
  29. <link rel="stylesheet" href="_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
  30. <link rel="shortcut icon" type="image/png" href="_static/py.svg" />
  31. <script type="text/javascript" src="_static/copybutton.js"></script>
  32. <script type="text/javascript" src="_static/menu.js"></script>
  33. <script type="text/javascript" src="_static/themetoggle.js"></script>
  34. </head>
  35. <body>
  36. <div class="mobile-nav">
  37. <input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
  38. aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu" />
  39. <nav class="nav-content" role="navigation">
  40. <label for="menuToggler" class="toggler__label">
  41. <span></span>
  42. </label>
  43. <span class="nav-items-wrapper">
  44. <a href="https://www.python.org/" class="nav-logo">
  45. <img src="_static/py.svg" alt="Logo"/>
  46. </a>
  47. <span class="version_switcher_placeholder"></span>
  48. <form role="search" class="search" action="search.html" method="get">
  49. <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
  50. <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>
  51. </svg>
  52. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  53. <input type="submit" value="Go"/>
  54. </form>
  55. </span>
  56. </nav>
  57. <div class="menu-wrapper">
  58. <nav class="menu" role="navigation" aria-label="main navigation">
  59. <div class="language_switcher_placeholder"></div>
  60. <label class="theme-selector-label">
  61. Theme
  62. <select class="theme-selector" oninput="activateTheme(this.value)">
  63. <option value="auto" selected>Auto</option>
  64. <option value="light">Light</option>
  65. <option value="dark">Dark</option>
  66. </select>
  67. </label><h3>Download</h3>
  68. <p><a href="download.html">Download these documents</a></p>
  69. <h3>Docs by version</h3>
  70. <ul>
  71. <li><a href="https://docs.python.org/">Stable</a></li>
  72. <li><a href="https://docs.python.org/dev/">In development</a></li>
  73. <li><a href="https://www.python.org/doc/versions/">All versions</a></li>
  74. </ul>
  75. <h3>Other resources</h3>
  76. <ul>
  77. <li><a href="https://peps.python.org/">PEP Index</a></li>
  78. <li><a href="https://wiki.python.org/moin/BeginnersGuide">Beginner's Guide</a></li>
  79. <li><a href="https://wiki.python.org/moin/PythonBooks">Book List</a></li>
  80. <li><a href="https://www.python.org/doc/av/">Audio/Visual Talks</a></li>
  81. <li><a href="https://devguide.python.org/">Python Developer’s Guide</a></li>
  82. </ul>
  83. </nav>
  84. </div>
  85. </div>
  86. <div class="related" role="navigation" aria-label="related navigation">
  87. <h3>Navigation</h3>
  88. <ul>
  89. <li class="right" style="margin-right: 10px">
  90. <a href="genindex.html" title="General Index"
  91. accesskey="I">index</a></li>
  92. <li class="right" >
  93. <a href="py-modindex.html" title="Python Module Index"
  94. >modules</a> |</li>
  95. <li><img src="_static/py.svg" alt="python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  96. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  97. <li class="switchers">
  98. <div class="language_switcher_placeholder"></div>
  99. <div class="version_switcher_placeholder"></div>
  100. </li>
  101. <li>
  102. </li>
  103. <li id="cpython-language-and-version">
  104. <a href="#">3.12.0 Documentation</a> &#187;
  105. </li>
  106. <li class="nav-item nav-item-this"><a href=""></a></li>
  107. <li class="right">
  108. <div class="inline-search" role="search">
  109. <form class="inline-search" action="search.html" method="get">
  110. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  111. <input type="submit" value="Go" />
  112. </form>
  113. </div>
  114. |
  115. </li>
  116. <li class="right">
  117. <label class="theme-selector-label">
  118. Theme
  119. <select class="theme-selector" oninput="activateTheme(this.value)">
  120. <option value="auto" selected>Auto</option>
  121. <option value="light">Light</option>
  122. <option value="dark">Dark</option>
  123. </select>
  124. </label> |</li>
  125. </ul>
  126. </div>
  127. <div class="document">
  128. <div class="documentwrapper">
  129. <div class="bodywrapper">
  130. <div class="body" role="main">
  131. <h1>Python 3.12.0 documentation</h1>
  132. <p>
  133. Welcome! This is the official documentation for Python 3.12.0.
  134. </p>
  135. <p><strong>Parts of the documentation:</strong></p>
  136. <table class="contentstable" align="center"><tr>
  137. <td width="50%">
  138. <p class="biglink"><a class="biglink" href="whatsnew/3.12.html">What's new in Python 3.12?</a><br/>
  139. <span class="linkdescr"> or <a href="whatsnew/index.html">all "What's new" documents</a> since 2.0</span></p>
  140. <p class="biglink"><a class="biglink" href="tutorial/index.html">Tutorial</a><br/>
  141. <span class="linkdescr">start here</span></p>
  142. <p class="biglink"><a class="biglink" href="library/index.html">Library Reference</a><br/>
  143. <span class="linkdescr">keep this under your pillow</span></p>
  144. <p class="biglink"><a class="biglink" href="reference/index.html">Language Reference</a><br/>
  145. <span class="linkdescr">describes syntax and language elements</span></p>
  146. <p class="biglink"><a class="biglink" href="using/index.html">Python Setup and Usage</a><br/>
  147. <span class="linkdescr">how to use Python on different platforms</span></p>
  148. <p class="biglink"><a class="biglink" href="howto/index.html">Python HOWTOs</a><br/>
  149. <span class="linkdescr">in-depth documents on specific topics</span></p>
  150. </td><td width="50%">
  151. <p class="biglink"><a class="biglink" href="installing/index.html">Installing Python Modules</a><br/>
  152. <span class="linkdescr">installing from the Python Package Index &amp; other sources</span></p>
  153. <p class="biglink"><a class="biglink" href="distributing/index.html">Distributing Python Modules</a><br/>
  154. <span class="linkdescr">publishing modules for installation by others</span></p>
  155. <p class="biglink"><a class="biglink" href="extending/index.html">Extending and Embedding</a><br/>
  156. <span class="linkdescr">tutorial for C/C++ programmers</span></p>
  157. <p class="biglink"><a class="biglink" href="c-api/index.html">Python/C API</a><br/>
  158. <span class="linkdescr">reference for C/C++ programmers</span></p>
  159. <p class="biglink"><a class="biglink" href="faq/index.html">FAQs</a><br/>
  160. <span class="linkdescr">frequently asked questions (with answers!)</span></p>
  161. </td></tr>
  162. </table>
  163. <p><strong>Indices and tables:</strong></p>
  164. <table class="contentstable" align="center"><tr>
  165. <td width="50%">
  166. <p class="biglink"><a class="biglink" href="py-modindex.html">Global Module Index</a><br/>
  167. <span class="linkdescr">quick access to all modules</span></p>
  168. <p class="biglink"><a class="biglink" href="genindex.html">General Index</a><br/>
  169. <span class="linkdescr">all functions, classes, terms</span></p>
  170. <p class="biglink"><a class="biglink" href="glossary.html">Glossary</a><br/>
  171. <span class="linkdescr">the most important terms explained</span></p>
  172. </td><td width="50%">
  173. <p class="biglink"><a class="biglink" href="search.html">Search page</a><br/>
  174. <span class="linkdescr">search this documentation</span></p>
  175. <p class="biglink"><a class="biglink" href="contents.html">Complete Table of Contents</a><br/>
  176. <span class="linkdescr">lists all sections and subsections</span></p>
  177. </td></tr>
  178. </table>
  179. <p><strong>Meta information:</strong></p>
  180. <table class="contentstable" align="center"><tr>
  181. <td width="50%">
  182. <p class="biglink"><a class="biglink" href="bugs.html">Reporting bugs</a></p>
  183. <p class="biglink"><a class="biglink" href="https://devguide.python.org/docquality/#helping-with-documentation">Contributing to Docs</a></p>
  184. <p class="biglink"><a class="biglink" href="about.html">About the documentation</a></p>
  185. </td><td width="50%">
  186. <p class="biglink"><a class="biglink" href="license.html">History and License of Python</a></p>
  187. <p class="biglink"><a class="biglink" href="copyright.html">Copyright</a></p>
  188. <p class="biglink"><a class="biglink" href="download.html">Download the documentation</a></p>
  189. </td></tr>
  190. </table>
  191. <div class="clearer"></div>
  192. </div>
  193. </div>
  194. </div>
  195. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  196. <div class="sphinxsidebarwrapper"><h3>Download</h3>
  197. <p><a href="download.html">Download these documents</a></p>
  198. <h3>Docs by version</h3>
  199. <ul>
  200. <li><a href="https://docs.python.org/">Stable</a></li>
  201. <li><a href="https://docs.python.org/dev/">In development</a></li>
  202. <li><a href="https://www.python.org/doc/versions/">All versions</a></li>
  203. </ul>
  204. <h3>Other resources</h3>
  205. <ul>
  206. <li><a href="https://peps.python.org/">PEP Index</a></li>
  207. <li><a href="https://wiki.python.org/moin/BeginnersGuide">Beginner's Guide</a></li>
  208. <li><a href="https://wiki.python.org/moin/PythonBooks">Book List</a></li>
  209. <li><a href="https://www.python.org/doc/av/">Audio/Visual Talks</a></li>
  210. <li><a href="https://devguide.python.org/">Python Developer’s Guide</a></li>
  211. </ul>
  212. </div>
  213. </div>
  214. <div class="clearer"></div>
  215. </div>
  216. <div class="related" role="navigation" aria-label="related navigation">
  217. <h3>Navigation</h3>
  218. <ul>
  219. <li class="right" style="margin-right: 10px">
  220. <a href="genindex.html" title="General Index"
  221. >index</a></li>
  222. <li class="right" >
  223. <a href="py-modindex.html" title="Python Module Index"
  224. >modules</a> |</li>
  225. <li><img src="_static/py.svg" alt="python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  226. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  227. <li class="switchers">
  228. <div class="language_switcher_placeholder"></div>
  229. <div class="version_switcher_placeholder"></div>
  230. </li>
  231. <li>
  232. </li>
  233. <li id="cpython-language-and-version">
  234. <a href="#">3.12.0 Documentation</a> &#187;
  235. </li>
  236. <li class="nav-item nav-item-this"><a href=""></a></li>
  237. <li class="right">
  238. <div class="inline-search" role="search">
  239. <form class="inline-search" action="search.html" method="get">
  240. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  241. <input type="submit" value="Go" />
  242. </form>
  243. </div>
  244. |
  245. </li>
  246. <li class="right">
  247. <label class="theme-selector-label">
  248. Theme
  249. <select class="theme-selector" oninput="activateTheme(this.value)">
  250. <option value="auto" selected>Auto</option>
  251. <option value="light">Light</option>
  252. <option value="dark">Dark</option>
  253. </select>
  254. </label> |</li>
  255. </ul>
  256. </div>
  257. <div class="footer">
  258. &copy; <a href="copyright.html">Copyright</a> 2001-2023, Python Software Foundation.
  259. <br />
  260. This page is licensed under the Python Software Foundation License Version 2.
  261. <br />
  262. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
  263. <br />
  264. See <a href="/license.html">History and License</a> for more information.<br />
  265. <br />
  266. The Python Software Foundation is a non-profit corporation.
  267. <a href="https://www.python.org/psf/donations/">Please donate.</a>
  268. <br />
  269. <br />
  270. Last updated on Oct 02, 2023.
  271. <a href="/bugs.html">Found a bug</a>?
  272. <br />
  273. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.5.0.
  274. </div>
  275. </body>
  276. </html>