Skip to content

Commit c7fbb55

Browse files
committed
Deploying to gh-pages from @ 4f401c5 🚀
1 parent 618b110 commit c7fbb55

File tree

556 files changed

+1719
-1727
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

556 files changed

+1719
-1727
lines changed

_sources/c-api/unicode.rst.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,16 @@ APIs:
621621
decref'ing the returned objects.
622622
623623
624+
.. c:function:: PyObject* PyUnicode_BuildEncodingMap(PyObject* string)
625+
626+
Return a mapping suitable for decoding a custom single-byte encoding.
627+
Given a Unicode string *string* of up to 256 characters representing an encoding
628+
table, returns either a compact internal mapping object or a dictionary
629+
mapping character ordinals to byte values. Raises a :exc:`TypeError` and
630+
return ``NULL`` on invalid input.
631+
.. versionadded:: 3.2
632+
633+
624634
.. c:function:: const char* PyUnicode_GetDefaultEncoding(void)
625635
626636
Return the name of the default string encoding, ``"utf-8"``.

_sources/library/math.rst.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,7 @@ Number-theoretic functions
144144

145145
.. function:: factorial(n)
146146

147-
Return *n* factorial as an integer. Raises :exc:`ValueError` if *n* is not integral or
148-
is negative.
147+
Return factorial of the nonnegative integer *n*.
149148

150149
.. versionchanged:: 3.10
151150
Floats with integral values (like ``5.0``) are no longer accepted.

_sources/library/unittest.mock.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2653,9 +2653,9 @@ with any methods on the mock:
26532653

26542654
.. code-block:: pycon
26552655
2656-
>>> mock.has_data()
2656+
>>> mock.header_items()
26572657
<mock.Mock object at 0x...>
2658-
>>> mock.has_data.assret_called_with() # Intentional typo!
2658+
>>> mock.header_items.assret_called_with() # Intentional typo!
26592659
26602660
Auto-speccing solves this problem. You can either pass ``autospec=True`` to
26612661
:func:`patch` / :func:`patch.object` or use the :func:`create_autospec` function to create a

_sources/library/urllib.request.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ HTTPHandler Objects
10761076
.. method:: HTTPHandler.http_open(req)
10771077

10781078
Send an HTTP request, which can be either GET or POST, depending on
1079-
``req.has_data()``.
1079+
``req.data``.
10801080

10811081

10821082
.. _https-handler-objects:
@@ -1088,7 +1088,7 @@ HTTPSHandler Objects
10881088
.. method:: HTTPSHandler.https_open(req)
10891089

10901090
Send an HTTPS request, which can be either GET or POST, depending on
1091-
``req.has_data()``.
1091+
``req.data``.
10921092

10931093

10941094
.. _file-handler-objects:

about.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="處理錯誤 (Bug)" href="bugs.html" />
3030
<link rel="prev" title="術語表" href="glossary.html" />
3131

32-
<link rel="canonical" href="https://docs.python.org/3/about.html">
33-
32+
33+
<link rel="canonical" href="https://docs.python.org/3/about.html">
3434

3535

3636

@@ -320,7 +320,7 @@ <h3>瀏覽</h3>
320320
<a href="https://www.python.org/psf/donations/">Please donate.</a>
321321
<br>
322322
<br>
323-
最後更新於 5月 11, 2025 (14:58 UTC)。
323+
最後更新於 5月 14, 2025 (22:41 UTC)。
324324

325325
<a href="/bugs.html">Found a bug</a>?
326326

bugs.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="版權宣告" href="copyright.html" />
3030
<link rel="prev" title="關於這份說明文件" href="about.html" />
3131

32-
<link rel="canonical" href="https://docs.python.org/3/bugs.html">
33-
32+
33+
<link rel="canonical" href="https://docs.python.org/3/bugs.html">
3434

3535

3636

@@ -359,7 +359,7 @@ <h3>瀏覽</h3>
359359
<a href="https://www.python.org/psf/donations/">Please donate.</a>
360360
<br>
361361
<br>
362-
最後更新於 5月 11, 2025 (14:58 UTC)。
362+
最後更新於 5月 14, 2025 (22:41 UTC)。
363363

364364
<a href="/bugs.html">Found a bug</a>?
365365

c-api/abstract.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="物件協定" href="object.html" />
3030
<link rel="prev" title="對 Perf Map 的支援" href="perfmaps.html" />
3131

32-
<link rel="canonical" href="https://docs.python.org/3/c-api/abstract.html">
33-
32+
33+
<link rel="canonical" href="https://docs.python.org/3/c-api/abstract.html">
3434

3535

3636

@@ -329,7 +329,7 @@ <h3>瀏覽</h3>
329329
<a href="https://www.python.org/psf/donations/">Please donate.</a>
330330
<br>
331331
<br>
332-
最後更新於 5月 11, 2025 (14:58 UTC)。
332+
最後更新於 5月 14, 2025 (22:41 UTC)。
333333

334334
<a href="/bugs.html">Found a bug</a>?
335335

c-api/allocation.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="通用物件結構" href="structures.html" />
3030
<link rel="prev" title="Object Implementation Support" href="objimpl.html" />
3131

32-
<link rel="canonical" href="https://docs.python.org/3/c-api/allocation.html">
33-
32+
33+
<link rel="canonical" href="https://docs.python.org/3/c-api/allocation.html">
3434

3535

3636

@@ -350,7 +350,7 @@ <h3>瀏覽</h3>
350350
<a href="https://www.python.org/psf/donations/">Please donate.</a>
351351
<br>
352352
<br>
353-
最後更新於 5月 11, 2025 (14:58 UTC)。
353+
最後更新於 5月 14, 2025 (22:41 UTC)。
354354

355355
<a href="/bugs.html">Found a bug</a>?
356356

c-api/apiabiversion.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="監控 C API" href="monitoring.html" />
3030
<link rel="prev" title="循環垃圾回收的支援" href="gcsupport.html" />
3131

32-
<link rel="canonical" href="https://docs.python.org/3/c-api/apiabiversion.html">
33-
32+
33+
<link rel="canonical" href="https://docs.python.org/3/c-api/apiabiversion.html">
3434

3535

3636

@@ -376,7 +376,7 @@ <h3>瀏覽</h3>
376376
<a href="https://www.python.org/psf/donations/">Please donate.</a>
377377
<br>
378378
<br>
379-
最後更新於 5月 11, 2025 (14:58 UTC)。
379+
最後更新於 5月 14, 2025 (22:41 UTC)。
380380

381381
<a href="/bugs.html">Found a bug</a>?
382382

c-api/arg.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="字串轉換與格式化" href="conversion.html" />
3030
<link rel="prev" title="資料 marshal 的支援" href="marshal.html" />
3131

32-
<link rel="canonical" href="https://docs.python.org/3/c-api/arg.html">
33-
32+
33+
<link rel="canonical" href="https://docs.python.org/3/c-api/arg.html">
3434

3535

3636

@@ -931,7 +931,7 @@ <h3>瀏覽</h3>
931931
<a href="https://www.python.org/psf/donations/">Please donate.</a>
932932
<br>
933933
<br>
934-
最後更新於 5月 11, 2025 (14:58 UTC)。
934+
最後更新於 5月 14, 2025 (22:41 UTC)。
935935

936936
<a href="/bugs.html">Found a bug</a>?
937937

0 commit comments

Comments
 (0)