Thanks to visit codestin.com
Credit goes to github.com

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

c-api/bool.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="浮點數(Floating-Point)物件" href="float.html" />
3030
<link rel="prev" title="整數物件" href="long.html" />
3131

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

3535

3636

@@ -341,7 +341,7 @@ <h3>瀏覽</h3>
341341
<a href="https://www.python.org/psf/donations/">Please donate.</a>
342342
<br>
343343
<br>
344-
最後更新於 5月 11, 2025 (14:58 UTC)。
344+
最後更新於 5月 14, 2025 (22:41 UTC)。
345345

346346
<a href="/bugs.html">Found a bug</a>?
347347

c-api/buffer.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="concrete.html" />
3030
<link rel="prev" title="疊代器協議" href="iter.html" />
3131

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

3535

3636

@@ -1022,7 +1022,7 @@ <h3>瀏覽</h3>
10221022
<a href="https://www.python.org/psf/donations/">Please donate.</a>
10231023
<br>
10241024
<br>
1025-
最後更新於 5月 11, 2025 (14:58 UTC)。
1025+
最後更新於 5月 14, 2025 (22:41 UTC)。
10261026

10271027
<a href="/bugs.html">Found a bug</a>?
10281028

c-api/bytearray.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="Unicode 物件與編解碼器" href="unicode.html" />
3030
<link rel="prev" title="位元組物件 (Bytes Objects)" href="bytes.html" />
3131

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

3535

3636

@@ -400,7 +400,7 @@ <h3>瀏覽</h3>
400400
<a href="https://www.python.org/psf/donations/">Please donate.</a>
401401
<br>
402402
<br>
403-
最後更新於 5月 11, 2025 (14:58 UTC)。
403+
最後更新於 5月 14, 2025 (22:41 UTC)。
404404

405405
<a href="/bugs.html">Found a bug</a>?
406406

c-api/bytes.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="位元組陣列物件 (Byte Array Objects)" href="bytearray.html" />
3030
<link rel="prev" title="複數物件" href="complex.html" />
3131

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

3535

3636

@@ -521,7 +521,7 @@ <h3>瀏覽</h3>
521521
<a href="https://www.python.org/psf/donations/">Please donate.</a>
522522
<br>
523523
<br>
524-
最後更新於 5月 11, 2025 (14:58 UTC)。
524+
最後更新於 5月 14, 2025 (22:41 UTC)。
525525

526526
<a href="/bugs.html">Found a bug</a>?
527527

c-api/call.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="number.html" />
3030
<link rel="prev" title="物件協定" href="object.html" />
3131

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

3535

3636

@@ -652,7 +652,7 @@ <h3>瀏覽</h3>
652652
<a href="https://www.python.org/psf/donations/">Please donate.</a>
653653
<br>
654654
<br>
655-
最後更新於 5月 11, 2025 (14:58 UTC)。
655+
最後更新於 5月 14, 2025 (22:41 UTC)。
656656

657657
<a href="/bugs.html">Found a bug</a>?
658658

c-api/capsule.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="Frame 物件" href="frame.html" />
3030
<link rel="prev" title="弱參照物件" href="weakref.html" />
3131

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

3535

3636

@@ -441,7 +441,7 @@ <h3>瀏覽</h3>
441441
<a href="https://www.python.org/psf/donations/">Please donate.</a>
442442
<br>
443443
<br>
444-
最後更新於 5月 11, 2025 (14:58 UTC)。
444+
最後更新於 5月 14, 2025 (22:41 UTC)。
445445

446446
<a href="/bugs.html">Found a bug</a>?
447447

c-api/cell.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="code.html" />
3030
<link rel="prev" title="實例方法物件 (Instance Method Objects)" href="method.html" />
3131

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

3535

3636

@@ -341,7 +341,7 @@ <h3>瀏覽</h3>
341341
<a href="https://www.python.org/psf/donations/">Please donate.</a>
342342
<br>
343343
<br>
344-
最後更新於 5月 11, 2025 (14:58 UTC)。
344+
最後更新於 5月 14, 2025 (22:41 UTC)。
345345

346346
<a href="/bugs.html">Found a bug</a>?
347347

c-api/code.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="檔案物件 (File Objects)" href="file.html" />
3030
<link rel="prev" title="Cell 物件" href="cell.html" />
3131

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

3535

3636

@@ -606,7 +606,7 @@ <h3>瀏覽</h3>
606606
<a href="https://www.python.org/psf/donations/">Please donate.</a>
607607
<br>
608608
<br>
609-
最後更新於 5月 11, 2025 (14:58 UTC)。
609+
最後更新於 5月 14, 2025 (22:41 UTC)。
610610

611611
<a href="/bugs.html">Found a bug</a>?
612612

c-api/codec.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="PyTime C API" href="time.html" />
3030
<link rel="prev" title="Reflection" href="reflection.html" />
3131

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

3535

3636

@@ -445,7 +445,7 @@ <h3>瀏覽</h3>
445445
<a href="https://www.python.org/psf/donations/">Please donate.</a>
446446
<br>
447447
<br>
448-
最後更新於 5月 11, 2025 (14:58 UTC)。
448+
最後更新於 5月 14, 2025 (22:41 UTC)。
449449

450450
<a href="/bugs.html">Found a bug</a>?
451451

c-api/complex.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<link rel="next" title="位元組物件 (Bytes Objects)" href="bytes.html" />
3030
<link rel="prev" title="浮點數(Floating-Point)物件" href="float.html" />
3131

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

3535

3636

@@ -448,7 +448,7 @@ <h3>瀏覽</h3>
448448
<a href="https://www.python.org/psf/donations/">Please donate.</a>
449449
<br>
450450
<br>
451-
最後更新於 5月 11, 2025 (14:58 UTC)。
451+
最後更新於 5月 14, 2025 (22:41 UTC)。
452452

453453
<a href="/bugs.html">Found a bug</a>?
454454

c-api/concrete.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="type.html" />
3030
<link rel="prev" title="緩衝協定 (Buffer Protocol)" href="buffer.html" />
3131

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

3535

3636

@@ -465,7 +465,7 @@ <h3>瀏覽</h3>
465465
<a href="https://www.python.org/psf/donations/">Please donate.</a>
466466
<br>
467467
<br>
468-
最後更新於 5月 11, 2025 (14:58 UTC)。
468+
最後更新於 5月 14, 2025 (22:41 UTC)。
469469

470470
<a href="/bugs.html">Found a bug</a>?
471471

0 commit comments

Comments
 (0)