gooderp18绿色标准版
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

457 lines
27KB

  1. <!DOCTYPE html>
  2. <html lang="en" data-content_root="../">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <meta property="og:title" content="stringprep — Internet String Preparation" />
  7. <meta property="og:type" content="website" />
  8. <meta property="og:url" content="https://docs.python.org/3/library/stringprep.html" />
  9. <meta property="og:site_name" content="Python documentation" />
  10. <meta property="og:description" content="Source code: Lib/stringprep.py When identifying things (such as host names) in the internet, it is often necessary to compare such identifications for “equality”. Exactly how this comparison is exe..." />
  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="Source code: Lib/stringprep.py When identifying things (such as host names) in the internet, it is often necessary to compare such identifications for “equality”. Exactly how this comparison is exe..." />
  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>stringprep — Internet String Preparation &#8212; Python 3.12.3 documentation</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
  18. <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=80d5e7a1" />
  19. <link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?v=bb723527" />
  20. <link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="../_static/pygments_dark.css?v=b20cc3f5" />
  21. <script src="../_static/documentation_options.js?v=2c828074"></script>
  22. <script src="../_static/doctools.js?v=888ff710"></script>
  23. <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
  24. <script src="../_static/sidebar.js"></script>
  25. <link rel="search" type="application/opensearchdescription+xml"
  26. title="Search within Python 3.12.3 documentation"
  27. href="../_static/opensearch.xml"/>
  28. <link rel="author" title="About these documents" href="../about.html" />
  29. <link rel="index" title="Index" href="../genindex.html" />
  30. <link rel="search" title="Search" href="../search.html" />
  31. <link rel="copyright" title="Copyright" href="../copyright.html" />
  32. <link rel="next" title="readline — GNU readline interface" href="readline.html" />
  33. <link rel="prev" title="unicodedata — Unicode Database" href="unicodedata.html" />
  34. <link rel="canonical" href="https://docs.python.org/3/library/stringprep.html" />
  35. <style>
  36. @media only screen {
  37. table.full-width-table {
  38. width: 100%;
  39. }
  40. }
  41. </style>
  42. <link rel="stylesheet" href="../_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
  43. <link rel="shortcut icon" type="image/png" href="../_static/py.svg" />
  44. <script type="text/javascript" src="../_static/copybutton.js"></script>
  45. <script type="text/javascript" src="../_static/menu.js"></script>
  46. <script type="text/javascript" src="../_static/search-focus.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="Python 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. <h4>Previous topic</h4>
  84. <p class="topless"><a href="unicodedata.html"
  85. title="previous chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">unicodedata</span></code> — Unicode Database</a></p>
  86. </div>
  87. <div>
  88. <h4>Next topic</h4>
  89. <p class="topless"><a href="readline.html"
  90. title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">readline</span></code> — GNU readline interface</a></p>
  91. </div>
  92. <div role="note" aria-label="source link">
  93. <h3>This Page</h3>
  94. <ul class="this-page-menu">
  95. <li><a href="../bugs.html">Report a Bug</a></li>
  96. <li>
  97. <a href="https://github.com/python/cpython/blob/main/Doc/library/stringprep.rst"
  98. rel="nofollow">Show Source
  99. </a>
  100. </li>
  101. </ul>
  102. </div>
  103. </nav>
  104. </div>
  105. </div>
  106. <div class="related" role="navigation" aria-label="related navigation">
  107. <h3>Navigation</h3>
  108. <ul>
  109. <li class="right" style="margin-right: 10px">
  110. <a href="../genindex.html" title="General Index"
  111. accesskey="I">index</a></li>
  112. <li class="right" >
  113. <a href="../py-modindex.html" title="Python Module Index"
  114. >modules</a> |</li>
  115. <li class="right" >
  116. <a href="readline.html" title="readline — GNU readline interface"
  117. accesskey="N">next</a> |</li>
  118. <li class="right" >
  119. <a href="unicodedata.html" title="unicodedata — Unicode Database"
  120. accesskey="P">previous</a> |</li>
  121. <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  122. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  123. <li class="switchers">
  124. <div class="language_switcher_placeholder"></div>
  125. <div class="version_switcher_placeholder"></div>
  126. </li>
  127. <li>
  128. </li>
  129. <li id="cpython-language-and-version">
  130. <a href="../index.html">3.12.3 Documentation</a> &#187;
  131. </li>
  132. <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>
  133. <li class="nav-item nav-item-2"><a href="text.html" accesskey="U">Text Processing Services</a> &#187;</li>
  134. <li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">stringprep</span></code> — Internet String Preparation</a></li>
  135. <li class="right">
  136. <div class="inline-search" role="search">
  137. <form class="inline-search" action="../search.html" method="get">
  138. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  139. <input type="submit" value="Go" />
  140. </form>
  141. </div>
  142. |
  143. </li>
  144. <li class="right">
  145. <label class="theme-selector-label">
  146. Theme
  147. <select class="theme-selector" oninput="activateTheme(this.value)">
  148. <option value="auto" selected>Auto</option>
  149. <option value="light">Light</option>
  150. <option value="dark">Dark</option>
  151. </select>
  152. </label> |</li>
  153. </ul>
  154. </div>
  155. <div class="document">
  156. <div class="documentwrapper">
  157. <div class="bodywrapper">
  158. <div class="body" role="main">
  159. <section id="module-stringprep">
  160. <span id="stringprep-internet-string-preparation"></span><h1><a class="reference internal" href="#module-stringprep" title="stringprep: String preparation, as per RFC 3453"><code class="xref py py-mod docutils literal notranslate"><span class="pre">stringprep</span></code></a> — Internet String Preparation<a class="headerlink" href="#module-stringprep" title="Link to this heading">¶</a></h1>
  161. <p><strong>Source code:</strong> <a class="reference external" href="https://github.com/python/cpython/tree/3.12/Lib/stringprep.py">Lib/stringprep.py</a></p>
  162. <hr class="docutils" />
  163. <p>When identifying things (such as host names) in the internet, it is often
  164. necessary to compare such identifications for “equality”. Exactly how this
  165. comparison is executed may depend on the application domain, e.g. whether it
  166. should be case-insensitive or not. It may be also necessary to restrict the
  167. possible identifications, to allow only identifications consisting of
  168. “printable” characters.</p>
  169. <p><span class="target" id="index-0"></span><a class="rfc reference external" href="https://datatracker.ietf.org/doc/html/rfc3454.html"><strong>RFC 3454</strong></a> defines a procedure for “preparing” Unicode strings in internet
  170. protocols. Before passing strings onto the wire, they are processed with the
  171. preparation procedure, after which they have a certain normalized form. The RFC
  172. defines a set of tables, which can be combined into profiles. Each profile must
  173. define which tables it uses, and what other optional parts of the <code class="docutils literal notranslate"><span class="pre">stringprep</span></code>
  174. procedure are part of the profile. One example of a <code class="docutils literal notranslate"><span class="pre">stringprep</span></code> profile is
  175. <code class="docutils literal notranslate"><span class="pre">nameprep</span></code>, which is used for internationalized domain names.</p>
  176. <p>The module <a class="reference internal" href="#module-stringprep" title="stringprep: String preparation, as per RFC 3453"><code class="xref py py-mod docutils literal notranslate"><span class="pre">stringprep</span></code></a> only exposes the tables from <span class="target" id="index-1"></span><a class="rfc reference external" href="https://datatracker.ietf.org/doc/html/rfc3454.html"><strong>RFC 3454</strong></a>. As these
  177. tables would be very large to represent as dictionaries or lists, the
  178. module uses the Unicode character database internally. The module source code
  179. itself was generated using the <code class="docutils literal notranslate"><span class="pre">mkstringprep.py</span></code> utility.</p>
  180. <p>As a result, these tables are exposed as functions, not as data structures.
  181. There are two kinds of tables in the RFC: sets and mappings. For a set,
  182. <a class="reference internal" href="#module-stringprep" title="stringprep: String preparation, as per RFC 3453"><code class="xref py py-mod docutils literal notranslate"><span class="pre">stringprep</span></code></a> provides the “characteristic function”, i.e. a function that
  183. returns <code class="docutils literal notranslate"><span class="pre">True</span></code> if the parameter is part of the set. For mappings, it provides the
  184. mapping function: given the key, it returns the associated value. Below is a
  185. list of all functions available in the module.</p>
  186. <dl class="py function">
  187. <dt class="sig sig-object py" id="stringprep.in_table_a1">
  188. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_a1</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_a1" title="Link to this definition">¶</a></dt>
  189. <dd><p>Determine whether <em>code</em> is in tableA.1 (Unassigned code points in Unicode 3.2).</p>
  190. </dd></dl>
  191. <dl class="py function">
  192. <dt class="sig sig-object py" id="stringprep.in_table_b1">
  193. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_b1</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_b1" title="Link to this definition">¶</a></dt>
  194. <dd><p>Determine whether <em>code</em> is in tableB.1 (Commonly mapped to nothing).</p>
  195. </dd></dl>
  196. <dl class="py function">
  197. <dt class="sig sig-object py" id="stringprep.map_table_b2">
  198. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">map_table_b2</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.map_table_b2" title="Link to this definition">¶</a></dt>
  199. <dd><p>Return the mapped value for <em>code</em> according to tableB.2 (Mapping for
  200. case-folding used with NFKC).</p>
  201. </dd></dl>
  202. <dl class="py function">
  203. <dt class="sig sig-object py" id="stringprep.map_table_b3">
  204. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">map_table_b3</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.map_table_b3" title="Link to this definition">¶</a></dt>
  205. <dd><p>Return the mapped value for <em>code</em> according to tableB.3 (Mapping for
  206. case-folding used with no normalization).</p>
  207. </dd></dl>
  208. <dl class="py function">
  209. <dt class="sig sig-object py" id="stringprep.in_table_c11">
  210. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c11</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c11" title="Link to this definition">¶</a></dt>
  211. <dd><p>Determine whether <em>code</em> is in tableC.1.1 (ASCII space characters).</p>
  212. </dd></dl>
  213. <dl class="py function">
  214. <dt class="sig sig-object py" id="stringprep.in_table_c12">
  215. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c12</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c12" title="Link to this definition">¶</a></dt>
  216. <dd><p>Determine whether <em>code</em> is in tableC.1.2 (Non-ASCII space characters).</p>
  217. </dd></dl>
  218. <dl class="py function">
  219. <dt class="sig sig-object py" id="stringprep.in_table_c11_c12">
  220. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c11_c12</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c11_c12" title="Link to this definition">¶</a></dt>
  221. <dd><p>Determine whether <em>code</em> is in tableC.1 (Space characters, union of C.1.1 and
  222. C.1.2).</p>
  223. </dd></dl>
  224. <dl class="py function">
  225. <dt class="sig sig-object py" id="stringprep.in_table_c21">
  226. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c21</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c21" title="Link to this definition">¶</a></dt>
  227. <dd><p>Determine whether <em>code</em> is in tableC.2.1 (ASCII control characters).</p>
  228. </dd></dl>
  229. <dl class="py function">
  230. <dt class="sig sig-object py" id="stringprep.in_table_c22">
  231. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c22</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c22" title="Link to this definition">¶</a></dt>
  232. <dd><p>Determine whether <em>code</em> is in tableC.2.2 (Non-ASCII control characters).</p>
  233. </dd></dl>
  234. <dl class="py function">
  235. <dt class="sig sig-object py" id="stringprep.in_table_c21_c22">
  236. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c21_c22</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c21_c22" title="Link to this definition">¶</a></dt>
  237. <dd><p>Determine whether <em>code</em> is in tableC.2 (Control characters, union of C.2.1 and
  238. C.2.2).</p>
  239. </dd></dl>
  240. <dl class="py function">
  241. <dt class="sig sig-object py" id="stringprep.in_table_c3">
  242. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c3</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c3" title="Link to this definition">¶</a></dt>
  243. <dd><p>Determine whether <em>code</em> is in tableC.3 (Private use).</p>
  244. </dd></dl>
  245. <dl class="py function">
  246. <dt class="sig sig-object py" id="stringprep.in_table_c4">
  247. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c4</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c4" title="Link to this definition">¶</a></dt>
  248. <dd><p>Determine whether <em>code</em> is in tableC.4 (Non-character code points).</p>
  249. </dd></dl>
  250. <dl class="py function">
  251. <dt class="sig sig-object py" id="stringprep.in_table_c5">
  252. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c5</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c5" title="Link to this definition">¶</a></dt>
  253. <dd><p>Determine whether <em>code</em> is in tableC.5 (Surrogate codes).</p>
  254. </dd></dl>
  255. <dl class="py function">
  256. <dt class="sig sig-object py" id="stringprep.in_table_c6">
  257. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c6</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c6" title="Link to this definition">¶</a></dt>
  258. <dd><p>Determine whether <em>code</em> is in tableC.6 (Inappropriate for plain text).</p>
  259. </dd></dl>
  260. <dl class="py function">
  261. <dt class="sig sig-object py" id="stringprep.in_table_c7">
  262. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c7</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c7" title="Link to this definition">¶</a></dt>
  263. <dd><p>Determine whether <em>code</em> is in tableC.7 (Inappropriate for canonical
  264. representation).</p>
  265. </dd></dl>
  266. <dl class="py function">
  267. <dt class="sig sig-object py" id="stringprep.in_table_c8">
  268. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c8</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c8" title="Link to this definition">¶</a></dt>
  269. <dd><p>Determine whether <em>code</em> is in tableC.8 (Change display properties or are
  270. deprecated).</p>
  271. </dd></dl>
  272. <dl class="py function">
  273. <dt class="sig sig-object py" id="stringprep.in_table_c9">
  274. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_c9</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_c9" title="Link to this definition">¶</a></dt>
  275. <dd><p>Determine whether <em>code</em> is in tableC.9 (Tagging characters).</p>
  276. </dd></dl>
  277. <dl class="py function">
  278. <dt class="sig sig-object py" id="stringprep.in_table_d1">
  279. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_d1</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_d1" title="Link to this definition">¶</a></dt>
  280. <dd><p>Determine whether <em>code</em> is in tableD.1 (Characters with bidirectional property
  281. “R” or “AL”).</p>
  282. </dd></dl>
  283. <dl class="py function">
  284. <dt class="sig sig-object py" id="stringprep.in_table_d2">
  285. <span class="sig-prename descclassname"><span class="pre">stringprep.</span></span><span class="sig-name descname"><span class="pre">in_table_d2</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">code</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#stringprep.in_table_d2" title="Link to this definition">¶</a></dt>
  286. <dd><p>Determine whether <em>code</em> is in tableD.2 (Characters with bidirectional property
  287. “L”).</p>
  288. </dd></dl>
  289. </section>
  290. <div class="clearer"></div>
  291. </div>
  292. </div>
  293. </div>
  294. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  295. <div class="sphinxsidebarwrapper">
  296. <div>
  297. <h4>Previous topic</h4>
  298. <p class="topless"><a href="unicodedata.html"
  299. title="previous chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">unicodedata</span></code> — Unicode Database</a></p>
  300. </div>
  301. <div>
  302. <h4>Next topic</h4>
  303. <p class="topless"><a href="readline.html"
  304. title="next chapter"><code class="xref py py-mod docutils literal notranslate"><span class="pre">readline</span></code> — GNU readline interface</a></p>
  305. </div>
  306. <div role="note" aria-label="source link">
  307. <h3>This Page</h3>
  308. <ul class="this-page-menu">
  309. <li><a href="../bugs.html">Report a Bug</a></li>
  310. <li>
  311. <a href="https://github.com/python/cpython/blob/main/Doc/library/stringprep.rst"
  312. rel="nofollow">Show Source
  313. </a>
  314. </li>
  315. </ul>
  316. </div>
  317. </div>
  318. <div id="sidebarbutton" title="Collapse sidebar">
  319. <span>«</span>
  320. </div>
  321. </div>
  322. <div class="clearer"></div>
  323. </div>
  324. <div class="related" role="navigation" aria-label="related navigation">
  325. <h3>Navigation</h3>
  326. <ul>
  327. <li class="right" style="margin-right: 10px">
  328. <a href="../genindex.html" title="General Index"
  329. >index</a></li>
  330. <li class="right" >
  331. <a href="../py-modindex.html" title="Python Module Index"
  332. >modules</a> |</li>
  333. <li class="right" >
  334. <a href="readline.html" title="readline — GNU readline interface"
  335. >next</a> |</li>
  336. <li class="right" >
  337. <a href="unicodedata.html" title="unicodedata — Unicode Database"
  338. >previous</a> |</li>
  339. <li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"/></li>
  340. <li><a href="https://www.python.org/">Python</a> &#187;</li>
  341. <li class="switchers">
  342. <div class="language_switcher_placeholder"></div>
  343. <div class="version_switcher_placeholder"></div>
  344. </li>
  345. <li>
  346. </li>
  347. <li id="cpython-language-and-version">
  348. <a href="../index.html">3.12.3 Documentation</a> &#187;
  349. </li>
  350. <li class="nav-item nav-item-1"><a href="index.html" >The Python Standard Library</a> &#187;</li>
  351. <li class="nav-item nav-item-2"><a href="text.html" >Text Processing Services</a> &#187;</li>
  352. <li class="nav-item nav-item-this"><a href=""><code class="xref py py-mod docutils literal notranslate"><span class="pre">stringprep</span></code> — Internet String Preparation</a></li>
  353. <li class="right">
  354. <div class="inline-search" role="search">
  355. <form class="inline-search" action="../search.html" method="get">
  356. <input placeholder="Quick search" aria-label="Quick search" type="search" name="q" id="search-box" />
  357. <input type="submit" value="Go" />
  358. </form>
  359. </div>
  360. |
  361. </li>
  362. <li class="right">
  363. <label class="theme-selector-label">
  364. Theme
  365. <select class="theme-selector" oninput="activateTheme(this.value)">
  366. <option value="auto" selected>Auto</option>
  367. <option value="light">Light</option>
  368. <option value="dark">Dark</option>
  369. </select>
  370. </label> |</li>
  371. </ul>
  372. </div>
  373. <div class="footer">
  374. &copy;
  375. <a href="../copyright.html">
  376. Copyright
  377. </a>
  378. 2001-2024, Python Software Foundation.
  379. <br />
  380. This page is licensed under the Python Software Foundation License Version 2.
  381. <br />
  382. Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
  383. <br />
  384. See <a href="/license.html">History and License</a> for more information.<br />
  385. <br />
  386. The Python Software Foundation is a non-profit corporation.
  387. <a href="https://www.python.org/psf/donations/">Please donate.</a>
  388. <br />
  389. <br />
  390. Last updated on Apr 09, 2024 (13:47 UTC).
  391. <a href="/bugs.html">Found a bug</a>?
  392. <br />
  393. Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.6.
  394. </div>
  395. </body>
  396. </html>
上海开阖软件有限公司 沪ICP备12045867号-1