concrete.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
  6. <meta property="og:title" content="Concrete Objects Layer" />
  7. <meta property="og:type" content="website" />
  8. <meta property="og:url" content="https://docs.python.org/3/c-api/concrete.html" />
  9. <meta property="og:site_name" content="Python documentation" />
  10. <meta property="og:description" content="The functions in this chapter are specific to certain Python object types. Passing them an object of the wrong type is not a good idea; if you receive an object from a Python program and you are no..." />
  11. <meta property="og:image" content="https://docs.python.org/3/_static/og-image.png" />
  12. <meta property="og:image:alt" content="Python documentation" />
  13. <meta name="description" content="The functions in this chapter are specific to certain Python object types. Passing them an object of the wrong type is not a good idea; if you receive an object from a Python program and you are no..." />
  14. <meta property="og:image:width" content="200" />
  15. <meta property="og:image:height" content="200" />
  16. <meta name="theme-color" content="#3776ab" />
  17. <title>Concrete Objects Layer &#8212; Python 3.12.0 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
  18. <link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
  19. <link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?digest=b37c26da2f7529d09fe70b41c4b2133fe4931a90" />
  20. <link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="../_static/pygments_dark.css" />
  21. <script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
  22. <script src="../_static/jquery.js"></script>
  23. <script src="../_static/underscore.js"></script>
  24. <script src="../_static/doctools.js"></script>
  25. <script src="../_static/sidebar.js"></script>
  26. <link rel="search" type="application/opensearchdescription+xml"
  27. title="Search within Python 3.12.0 documentation"
  28. href="../_static/opensearch.xml"/>
  29. <link rel="author" title="About these documents" href="../about.html" />
  30. <link rel="index" title="Index" href="../genindex.html" />
  31. <link rel="search" title="Search" href="../search.html" />
  32. <link rel="copyright" title="Copyright" href="../copyright.html" />
  33. <link rel="next" title="Type Objects" href="type.html" />
  34. <link rel="prev" title="Old Buffer Protocol" href="objbuffer.html" />
  35. <link rel="canonical" href="https://docs.python.org/3/c-api/concrete.html" />
  36. <style>
  37. @media only screen {
  38. table.full-width-table {
  39. width: 100%;
  40. }
  41. }
  42. </style>
  43. <link rel="stylesheet" href="../_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
  44. <link rel="shortcut icon" type="image/png" href="../_static/py.svg" />
  45. <script type="text/javascript" src="../_static/copybutton.js"></script>
  46. <script type="text/javascript" src="../_static/menu.js"></script>
  47. <script type="text/javascript" src="../_static/themetoggle.js"></script>
  48. </head>
  49. <body>
  50. <div class="mobile-nav">
  51. <input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
  52. aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu" />
  53. <nav class="nav-content" role="navigation">
  54. <label for="menuToggler" class="toggler__label">
  55. <span></span>
  56. </label>
  57. <span class="nav-items-wrapper">
  58. <a href="https://www.python.org/" class="nav-logo">
  59. <img src="../_static/py.svg" alt="Logo"/>
  60. </a>
  61. <span class="version_switcher_placeholder"></span>
  62. <form role="search" class="search" action="../search.html" method="get">
  63. <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
  64. <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>
  65. </svg>
  66. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  67. <input type="submit" value="Go"/>
  68. </form>
  69. </span>
  70. </nav>
  71. <div class="menu-wrapper">
  72. <nav class="menu" role="navigation" aria-label="main navigation">
  73. <div class="language_switcher_placeholder"></div>
  74. <label class="theme-selector-label">
  75. Theme
  76. <select class="theme-selector" oninput="activateTheme(this.value)">
  77. <option value="auto" selected>Auto</option>
  78. <option value="light">Light</option>
  79. <option value="dark">Dark</option>
  80. </select>
  81. </label>
  82. <div>
  83. <h3><a href="../contents.html">Table of Contents</a></h3>
  84. <ul>
  85. <li><a class="reference internal" href="#">Concrete Objects Layer</a><ul>
  86. <li><a class="reference internal" href="#fundamental-objects">Fundamental Objects</a></li>
  87. <li><a class="reference internal" href="#numeric-objects">Numeric Objects</a></li>
  88. <li><a class="reference internal" href="#sequence-objects">Sequence Objects</a></li>
  89. <li><a class="reference internal" href="#container-objects">Container Objects</a></li>
  90. <li><a class="reference internal" href="#function-objects">Function Objects</a></li>
  91. <li><a class="reference internal" href="#other-objects">Other Objects</a></li>
  92. </ul>
  93. </li>
  94. </ul>
  95. </div>
  96. <div>
  97. <h4>Previous topic</h4>
  98. <p class="topless"><a href="objbuffer.html"
  99. title="previous chapter">Old Buffer Protocol</a></p>
  100. </div>
  101. <div>
  102. <h4>Next topic</h4>
  103. <p class="topless"><a href="type.html"
  104. title="next chapter">Type Objects</a></p>
  105. </div>
  106. <div role="note" aria-label="source link">
  107. <h3>This Page</h3>
  108. <ul class="this-page-menu">
  109. <li><a href="../bugs.html">Report a Bug</a></li>
  110. <li>
  111. <a href="https://github.com/python/cpython/blob/main/Doc/c-api/concrete.rst"
  112. rel="nofollow">Show Source
  113. </a>
  114. </li>
  115. </ul>
  116. </div>
  117. </nav>
  118. </div>
  119. </div>
  120. <div class="related" role="navigation" aria-label="related navigation">
  121. <h3>Navigation</h3>
  122. <ul>
  123. <li class="right" style="margin-right: 10px">
  124. <a href="../genindex.html" title="General Index"
  125. accesskey="I">index</a></li>
  126. <li class="right" >
  127. <a href="../py-modindex.html" title="Python Module Index"
  128. >modules</a> |</li>
  129. <li class="right" >
  130. <a href="type.html" title="Type Objects"
  131. accesskey="N">next</a> |</li>
  132. <li class="right" >
  133. <a href="objbuffer.html" title="Old Buffer Protocol"
  134. accesskey="P">previous</a> |</li>
  135. <li><img src="../_static/py.svg" alt="python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  136. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  137. <li class="switchers">
  138. <div class="language_switcher_placeholder"></div>
  139. <div class="version_switcher_placeholder"></div>
  140. </li>
  141. <li>
  142. </li>
  143. <li id="cpython-language-and-version">
  144. <a href="../index.html">3.12.0 Documentation</a> &#187;
  145. </li>
  146. <li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Python/C API Reference Manual</a> &#187;</li>
  147. <li class="nav-item nav-item-this"><a href="">Concrete Objects Layer</a></li>
  148. <li class="right">
  149. <div class="inline-search" role="search">
  150. <form class="inline-search" action="../search.html" method="get">
  151. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  152. <input type="submit" value="Go" />
  153. </form>
  154. </div>
  155. |
  156. </li>
  157. <li class="right">
  158. <label class="theme-selector-label">
  159. Theme
  160. <select class="theme-selector" oninput="activateTheme(this.value)">
  161. <option value="auto" selected>Auto</option>
  162. <option value="light">Light</option>
  163. <option value="dark">Dark</option>
  164. </select>
  165. </label> |</li>
  166. </ul>
  167. </div>
  168. <div class="document">
  169. <div class="documentwrapper">
  170. <div class="bodywrapper">
  171. <div class="body" role="main">
  172. <section id="concrete-objects-layer">
  173. <span id="concrete"></span><h1>Concrete Objects Layer<a class="headerlink" href="#concrete-objects-layer" title="Permalink to this headline">¶</a></h1>
  174. <p>The functions in this chapter are specific to certain Python object types.
  175. Passing them an object of the wrong type is not a good idea; if you receive an
  176. object from a Python program and you are not sure that it has the right type,
  177. you must perform a type check first; for example, to check that an object is a
  178. dictionary, use <a class="reference internal" href="dict.html#c.PyDict_Check" title="PyDict_Check"><code class="xref c c-func docutils literal notranslate"><span class="pre">PyDict_Check()</span></code></a>. The chapter is structured like the
  179. “family tree” of Python object types.</p>
  180. <div class="admonition warning">
  181. <p class="admonition-title">Warning</p>
  182. <p>While the functions described in this chapter carefully check the type of the
  183. objects which are passed in, many of them do not check for <code class="docutils literal notranslate"><span class="pre">NULL</span></code> being passed
  184. instead of a valid object. Allowing <code class="docutils literal notranslate"><span class="pre">NULL</span></code> to be passed in can cause memory
  185. access violations and immediate termination of the interpreter.</p>
  186. </div>
  187. <section id="fundamental-objects">
  188. <span id="fundamental"></span><h2>Fundamental Objects<a class="headerlink" href="#fundamental-objects" title="Permalink to this headline">¶</a></h2>
  189. <p>This section describes Python type objects and the singleton object <code class="docutils literal notranslate"><span class="pre">None</span></code>.</p>
  190. <div class="toctree-wrapper compound">
  191. <ul>
  192. <li class="toctree-l1"><a class="reference internal" href="type.html">Type Objects</a><ul>
  193. <li class="toctree-l2"><a class="reference internal" href="type.html#creating-heap-allocated-types">Creating Heap-Allocated Types</a></li>
  194. </ul>
  195. </li>
  196. <li class="toctree-l1"><a class="reference internal" href="none.html">The <code class="docutils literal notranslate"><span class="pre">None</span></code> Object</a></li>
  197. </ul>
  198. </div>
  199. </section>
  200. <section id="numeric-objects">
  201. <span id="numericobjects"></span><h2>Numeric Objects<a class="headerlink" href="#numeric-objects" title="Permalink to this headline">¶</a></h2>
  202. <div class="toctree-wrapper compound" id="index-0">
  203. <ul>
  204. <li class="toctree-l1"><a class="reference internal" href="long.html">Integer Objects</a></li>
  205. <li class="toctree-l1"><a class="reference internal" href="bool.html">Boolean Objects</a></li>
  206. <li class="toctree-l1"><a class="reference internal" href="float.html">Floating Point Objects</a><ul>
  207. <li class="toctree-l2"><a class="reference internal" href="float.html#pack-and-unpack-functions">Pack and Unpack functions</a><ul>
  208. <li class="toctree-l3"><a class="reference internal" href="float.html#pack-functions">Pack functions</a></li>
  209. <li class="toctree-l3"><a class="reference internal" href="float.html#unpack-functions">Unpack functions</a></li>
  210. </ul>
  211. </li>
  212. </ul>
  213. </li>
  214. <li class="toctree-l1"><a class="reference internal" href="complex.html">Complex Number Objects</a><ul>
  215. <li class="toctree-l2"><a class="reference internal" href="complex.html#complex-numbers-as-c-structures">Complex Numbers as C Structures</a></li>
  216. <li class="toctree-l2"><a class="reference internal" href="complex.html#complex-numbers-as-python-objects">Complex Numbers as Python Objects</a></li>
  217. </ul>
  218. </li>
  219. </ul>
  220. </div>
  221. </section>
  222. <section id="sequence-objects">
  223. <span id="sequenceobjects"></span><h2>Sequence Objects<a class="headerlink" href="#sequence-objects" title="Permalink to this headline">¶</a></h2>
  224. <p id="index-1">Generic operations on sequence objects were discussed in the previous chapter;
  225. this section deals with the specific kinds of sequence objects that are
  226. intrinsic to the Python language.</p>
  227. <div class="toctree-wrapper compound">
  228. <ul>
  229. <li class="toctree-l1"><a class="reference internal" href="bytes.html">Bytes Objects</a></li>
  230. <li class="toctree-l1"><a class="reference internal" href="bytearray.html">Byte Array Objects</a><ul>
  231. <li class="toctree-l2"><a class="reference internal" href="bytearray.html#type-check-macros">Type check macros</a></li>
  232. <li class="toctree-l2"><a class="reference internal" href="bytearray.html#direct-api-functions">Direct API functions</a></li>
  233. <li class="toctree-l2"><a class="reference internal" href="bytearray.html#macros">Macros</a></li>
  234. </ul>
  235. </li>
  236. <li class="toctree-l1"><a class="reference internal" href="unicode.html">Unicode Objects and Codecs</a><ul>
  237. <li class="toctree-l2"><a class="reference internal" href="unicode.html#unicode-objects">Unicode Objects</a><ul>
  238. <li class="toctree-l3"><a class="reference internal" href="unicode.html#unicode-type">Unicode Type</a></li>
  239. <li class="toctree-l3"><a class="reference internal" href="unicode.html#unicode-character-properties">Unicode Character Properties</a></li>
  240. <li class="toctree-l3"><a class="reference internal" href="unicode.html#creating-and-accessing-unicode-strings">Creating and accessing Unicode strings</a></li>
  241. <li class="toctree-l3"><a class="reference internal" href="unicode.html#locale-encoding">Locale Encoding</a></li>
  242. <li class="toctree-l3"><a class="reference internal" href="unicode.html#file-system-encoding">File System Encoding</a></li>
  243. <li class="toctree-l3"><a class="reference internal" href="unicode.html#wchar-t-support">wchar_t Support</a></li>
  244. </ul>
  245. </li>
  246. <li class="toctree-l2"><a class="reference internal" href="unicode.html#built-in-codecs">Built-in Codecs</a><ul>
  247. <li class="toctree-l3"><a class="reference internal" href="unicode.html#generic-codecs">Generic Codecs</a></li>
  248. <li class="toctree-l3"><a class="reference internal" href="unicode.html#utf-8-codecs">UTF-8 Codecs</a></li>
  249. <li class="toctree-l3"><a class="reference internal" href="unicode.html#utf-32-codecs">UTF-32 Codecs</a></li>
  250. <li class="toctree-l3"><a class="reference internal" href="unicode.html#utf-16-codecs">UTF-16 Codecs</a></li>
  251. <li class="toctree-l3"><a class="reference internal" href="unicode.html#utf-7-codecs">UTF-7 Codecs</a></li>
  252. <li class="toctree-l3"><a class="reference internal" href="unicode.html#unicode-escape-codecs">Unicode-Escape Codecs</a></li>
  253. <li class="toctree-l3"><a class="reference internal" href="unicode.html#raw-unicode-escape-codecs">Raw-Unicode-Escape Codecs</a></li>
  254. <li class="toctree-l3"><a class="reference internal" href="unicode.html#latin-1-codecs">Latin-1 Codecs</a></li>
  255. <li class="toctree-l3"><a class="reference internal" href="unicode.html#ascii-codecs">ASCII Codecs</a></li>
  256. <li class="toctree-l3"><a class="reference internal" href="unicode.html#character-map-codecs">Character Map Codecs</a></li>
  257. <li class="toctree-l3"><a class="reference internal" href="unicode.html#mbcs-codecs-for-windows">MBCS codecs for Windows</a></li>
  258. <li class="toctree-l3"><a class="reference internal" href="unicode.html#methods-slots">Methods &amp; Slots</a></li>
  259. </ul>
  260. </li>
  261. <li class="toctree-l2"><a class="reference internal" href="unicode.html#methods-and-slot-functions">Methods and Slot Functions</a></li>
  262. </ul>
  263. </li>
  264. <li class="toctree-l1"><a class="reference internal" href="tuple.html">Tuple Objects</a></li>
  265. <li class="toctree-l1"><a class="reference internal" href="tuple.html#struct-sequence-objects">Struct Sequence Objects</a></li>
  266. <li class="toctree-l1"><a class="reference internal" href="list.html">List Objects</a></li>
  267. </ul>
  268. </div>
  269. </section>
  270. <section id="container-objects">
  271. <span id="mapobjects"></span><h2>Container Objects<a class="headerlink" href="#container-objects" title="Permalink to this headline">¶</a></h2>
  272. <div class="toctree-wrapper compound" id="index-2">
  273. <ul>
  274. <li class="toctree-l1"><a class="reference internal" href="dict.html">Dictionary Objects</a></li>
  275. <li class="toctree-l1"><a class="reference internal" href="set.html">Set Objects</a></li>
  276. </ul>
  277. </div>
  278. </section>
  279. <section id="function-objects">
  280. <span id="otherobjects"></span><h2>Function Objects<a class="headerlink" href="#function-objects" title="Permalink to this headline">¶</a></h2>
  281. <div class="toctree-wrapper compound">
  282. <ul>
  283. <li class="toctree-l1"><a class="reference internal" href="function.html">Function Objects</a></li>
  284. <li class="toctree-l1"><a class="reference internal" href="method.html">Instance Method Objects</a></li>
  285. <li class="toctree-l1"><a class="reference internal" href="method.html#method-objects">Method Objects</a></li>
  286. <li class="toctree-l1"><a class="reference internal" href="cell.html">Cell Objects</a></li>
  287. <li class="toctree-l1"><a class="reference internal" href="code.html">Code Objects</a></li>
  288. <li class="toctree-l1"><a class="reference internal" href="code.html#extra-information">Extra information</a></li>
  289. </ul>
  290. </div>
  291. </section>
  292. <section id="other-objects">
  293. <h2>Other Objects<a class="headerlink" href="#other-objects" title="Permalink to this headline">¶</a></h2>
  294. <div class="toctree-wrapper compound">
  295. <ul>
  296. <li class="toctree-l1"><a class="reference internal" href="file.html">File Objects</a></li>
  297. <li class="toctree-l1"><a class="reference internal" href="module.html">Module Objects</a><ul>
  298. <li class="toctree-l2"><a class="reference internal" href="module.html#initializing-c-modules">Initializing C modules</a><ul>
  299. <li class="toctree-l3"><a class="reference internal" href="module.html#single-phase-initialization">Single-phase initialization</a></li>
  300. <li class="toctree-l3"><a class="reference internal" href="module.html#multi-phase-initialization">Multi-phase initialization</a></li>
  301. <li class="toctree-l3"><a class="reference internal" href="module.html#low-level-module-creation-functions">Low-level module creation functions</a></li>
  302. <li class="toctree-l3"><a class="reference internal" href="module.html#support-functions">Support functions</a></li>
  303. </ul>
  304. </li>
  305. <li class="toctree-l2"><a class="reference internal" href="module.html#module-lookup">Module lookup</a></li>
  306. </ul>
  307. </li>
  308. <li class="toctree-l1"><a class="reference internal" href="iterator.html">Iterator Objects</a></li>
  309. <li class="toctree-l1"><a class="reference internal" href="descriptor.html">Descriptor Objects</a></li>
  310. <li class="toctree-l1"><a class="reference internal" href="slice.html">Slice Objects</a><ul>
  311. <li class="toctree-l2"><a class="reference internal" href="slice.html#ellipsis-object">Ellipsis Object</a></li>
  312. </ul>
  313. </li>
  314. <li class="toctree-l1"><a class="reference internal" href="memoryview.html">MemoryView objects</a></li>
  315. <li class="toctree-l1"><a class="reference internal" href="weakref.html">Weak Reference Objects</a></li>
  316. <li class="toctree-l1"><a class="reference internal" href="capsule.html">Capsules</a></li>
  317. <li class="toctree-l1"><a class="reference internal" href="frame.html">Frame Objects</a><ul>
  318. <li class="toctree-l2"><a class="reference internal" href="frame.html#internal-frames">Internal Frames</a></li>
  319. </ul>
  320. </li>
  321. <li class="toctree-l1"><a class="reference internal" href="gen.html">Generator Objects</a></li>
  322. <li class="toctree-l1"><a class="reference internal" href="coro.html">Coroutine Objects</a></li>
  323. <li class="toctree-l1"><a class="reference internal" href="contextvars.html">Context Variables Objects</a></li>
  324. <li class="toctree-l1"><a class="reference internal" href="datetime.html">DateTime Objects</a></li>
  325. <li class="toctree-l1"><a class="reference internal" href="typehints.html">Objects for Type Hinting</a></li>
  326. </ul>
  327. </div>
  328. </section>
  329. </section>
  330. <div class="clearer"></div>
  331. </div>
  332. </div>
  333. </div>
  334. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  335. <div class="sphinxsidebarwrapper">
  336. <div>
  337. <h3><a href="../contents.html">Table of Contents</a></h3>
  338. <ul>
  339. <li><a class="reference internal" href="#">Concrete Objects Layer</a><ul>
  340. <li><a class="reference internal" href="#fundamental-objects">Fundamental Objects</a></li>
  341. <li><a class="reference internal" href="#numeric-objects">Numeric Objects</a></li>
  342. <li><a class="reference internal" href="#sequence-objects">Sequence Objects</a></li>
  343. <li><a class="reference internal" href="#container-objects">Container Objects</a></li>
  344. <li><a class="reference internal" href="#function-objects">Function Objects</a></li>
  345. <li><a class="reference internal" href="#other-objects">Other Objects</a></li>
  346. </ul>
  347. </li>
  348. </ul>
  349. </div>
  350. <div>
  351. <h4>Previous topic</h4>
  352. <p class="topless"><a href="objbuffer.html"
  353. title="previous chapter">Old Buffer Protocol</a></p>
  354. </div>
  355. <div>
  356. <h4>Next topic</h4>
  357. <p class="topless"><a href="type.html"
  358. title="next chapter">Type Objects</a></p>
  359. </div>
  360. <div role="note" aria-label="source link">
  361. <h3>This Page</h3>
  362. <ul class="this-page-menu">
  363. <li><a href="../bugs.html">Report a Bug</a></li>
  364. <li>
  365. <a href="https://github.com/python/cpython/blob/main/Doc/c-api/concrete.rst"
  366. rel="nofollow">Show Source
  367. </a>
  368. </li>
  369. </ul>
  370. </div>
  371. </div>
  372. </div>
  373. <div class="clearer"></div>
  374. </div>
  375. <div class="related" role="navigation" aria-label="related navigation">
  376. <h3>Navigation</h3>
  377. <ul>
  378. <li class="right" style="margin-right: 10px">
  379. <a href="../genindex.html" title="General Index"
  380. >index</a></li>
  381. <li class="right" >
  382. <a href="../py-modindex.html" title="Python Module Index"
  383. >modules</a> |</li>
  384. <li class="right" >
  385. <a href="type.html" title="Type Objects"
  386. >next</a> |</li>
  387. <li class="right" >
  388. <a href="objbuffer.html" title="Old Buffer Protocol"
  389. >previous</a> |</li>
  390. <li><img src="../_static/py.svg" alt="python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  391. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  392. <li class="switchers">
  393. <div class="language_switcher_placeholder"></div>
  394. <div class="version_switcher_placeholder"></div>
  395. </li>
  396. <li>
  397. </li>
  398. <li id="cpython-language-and-version">
  399. <a href="../index.html">3.12.0 Documentation</a> &#187;
  400. </li>
  401. <li class="nav-item nav-item-1"><a href="index.html" >Python/C API Reference Manual</a> &#187;</li>
  402. <li class="nav-item nav-item-this"><a href="">Concrete Objects Layer</a></li>
  403. <li class="right">
  404. <div class="inline-search" role="search">
  405. <form class="inline-search" action="../search.html" method="get">
  406. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" />
  407. <input type="submit" value="Go" />
  408. </form>
  409. </div>
  410. |
  411. </li>
  412. <li class="right">
  413. <label class="theme-selector-label">
  414. Theme
  415. <select class="theme-selector" oninput="activateTheme(this.value)">
  416. <option value="auto" selected>Auto</option>
  417. <option value="light">Light</option>
  418. <option value="dark">Dark</option>
  419. </select>
  420. </label> |</li>
  421. </ul>
  422. </div>
  423. <div class="footer">
  424. &copy; <a href="../copyright.html">Copyright</a> 2001-2023, Python Software Foundation.
  425. <br />
  426. This page is licensed under the Python Software Foundation License Version 2.
  427. <br />
  428. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
  429. <br />
  430. See <a href="/license.html">History and License</a> for more information.<br />
  431. <br />
  432. The Python Software Foundation is a non-profit corporation.
  433. <a href="https://www.python.org/psf/donations/">Please donate.</a>
  434. <br />
  435. <br />
  436. Last updated on Oct 02, 2023.
  437. <a href="/bugs.html">Found a bug</a>?
  438. <br />
  439. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.5.0.
  440. </div>
  441. </body>
  442. </html>