Skip to content

Commit 389bffe

Browse files
committed
Deploying to gh-pages from @ 2851e68 🚀
1 parent 68f5f19 commit 389bffe

File tree

557 files changed

+4766
-4570
lines changed

Some content is hidden

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

557 files changed

+4766
-4570
lines changed

_sources/c-api/structures.rst.txt

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ under :ref:`reference counting <countingrefs>`.
6363
See documentation of :c:type:`PyVarObject` above.
6464

6565

66+
.. c:var:: PyTypeObject PyBaseObject_Type
67+
68+
The base class of all other objects, the same as :class:`object` in Python.
69+
70+
6671
.. c:function:: int Py_Is(PyObject *x, PyObject *y)
6772
6873
Test if the *x* object is the *y* object, the same as ``x is y`` in Python.

_sources/library/pdb.rst.txt

+17-8
Original file line numberDiff line numberDiff line change
@@ -75,25 +75,34 @@ The debugger's prompt is ``(Pdb)``, which is the indicator that you are in debug
7575
arguments of the ``p`` command.
7676

7777

78+
.. program:: pdb
79+
7880
You can also invoke :mod:`pdb` from the command line to debug other scripts. For
7981
example::
8082

81-
python -m pdb myscript.py
83+
python -m pdb [-c command] (-m module | pyfile) [args ...]
8284

8385
When invoked as a module, pdb will automatically enter post-mortem debugging if
8486
the program being debugged exits abnormally. After post-mortem debugging (or
8587
after normal exit of the program), pdb will restart the program. Automatic
8688
restarting preserves pdb's state (such as breakpoints) and in most cases is more
8789
useful than quitting the debugger upon program's exit.
8890

89-
.. versionchanged:: 3.2
90-
Added the ``-c`` option to execute commands as if given
91-
in a :file:`.pdbrc` file; see :ref:`debugger-commands`.
91+
.. option:: -c, --command <command>
9292

93-
.. versionchanged:: 3.7
94-
Added the ``-m`` option to execute modules similar to the way
95-
``python -m`` does. As with a script, the debugger will pause execution just
96-
before the first line of the module.
93+
To execute commands as if given in a :file:`.pdbrc` file; see
94+
:ref:`debugger-commands`.
95+
96+
.. versionchanged:: 3.2
97+
Added the ``-c`` option.
98+
99+
.. option:: -m <module>
100+
101+
To execute modules similar to the way ``python -m`` does. As with a script,
102+
the debugger will pause execution just before the first line of the module.
103+
104+
.. versionchanged:: 3.7
105+
Added the ``-m`` option.
97106

98107
Typical usage to execute a statement under control of the debugger is::
99108

_sources/library/time.rst.txt

+7-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,13 @@ An explanation of some terminology and conventions is in order.
5252
single: Coordinated Universal Time
5353
single: Greenwich Mean Time
5454

55-
* UTC is Coordinated Universal Time (formerly known as Greenwich Mean Time, or
56-
GMT). The acronym UTC is not a mistake but a compromise between English and
57-
French.
55+
* UTC is `Coordinated Universal Time`_ and superseded `Greenwich Mean Time`_ or
56+
GMT as the basis of international timekeeping. The acronym UTC is not a
57+
mistake but conforms to an earlier, language-agnostic naming scheme for time
58+
standards such as UT0, UT1, and UT2.
59+
60+
.. _Coordinated Universal Time: https://en.wikipedia.org/wiki/Coordinated_Universal_Time
61+
.. _Greenwich Mean Time: https://en.wikipedia.org/wiki/Greenwich_Mean_Time
5862

5963
.. index:: single: Daylight Saving Time
6064

_sources/library/webbrowser.rst.txt

+12-3
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,23 @@ a new tab, with the browser being brought to the foreground. The use of the
4040
:mod:`webbrowser` module on iOS requires the :mod:`ctypes` module. If
4141
:mod:`ctypes` isn't available, calls to :func:`.open` will fail.
4242

43+
.. program:: webbrowser
44+
4345
The script :program:`webbrowser` can be used as a command-line interface for the
4446
module. It accepts a URL as the argument. It accepts the following optional
4547
parameters:
4648

47-
* ``-n``/``--new-window`` opens the URL in a new browser window, if possible.
48-
* ``-t``/``--new-tab`` opens the URL in a new browser page ("tab").
49+
.. option:: -n, --new-window
50+
51+
Opens the URL in a new browser window, if possible.
52+
53+
.. option:: -t, --new-tab
54+
55+
Opens the URL in a new browser tab.
56+
57+
The options are, naturally, mutually exclusive. Usage example:
4958

50-
The options are, naturally, mutually exclusive. Usage example::
59+
.. code-block:: bash
5160
5261
python -m webbrowser -t "https://www.python.org"
5362

_sources/library/zipfile.rst.txt

+8
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,14 @@ Path Objects
543543
e.g. 'dir/file.txt', 'dir/', or ''. Defaults to the empty string,
544544
indicating the root.
545545

546+
.. note::
547+
The :class:`Path` class does not sanitize filenames within the ZIP archive. Unlike
548+
the :meth:`ZipFile.extract` and :meth:`ZipFile.extractall` methods, it is the
549+
caller's responsibility to validate or sanitize filenames to prevent path traversal
550+
vulnerabilities (e.g., filenames containing ".." or absolute paths). When handling
551+
untrusted archives, consider resolving filenames using :func:`os.path.abspath`
552+
and checking against the target directory with :func:`os.path.commonpath`.
553+
546554
Path objects expose the following features of :mod:`pathlib.Path`
547555
objects:
548556

about.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ <h3>瀏覽</h3>
319319
<a href="https://www.python.org/psf/donations/">Please donate.</a>
320320
<br />
321321
<br />
322-
最後更新於 3月 08, 2025 (05:49 UTC)。
322+
最後更新於 3月 11, 2025 (03:28 UTC)。
323323

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

bugs.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
230230
</section>
231231
<section id="getting-started-contributing-to-python-yourself">
232232
<span id="contributing-to-python"></span><h2>開始讓自己貢獻 Python<a class="headerlink" href="#getting-started-contributing-to-python-yourself" title="連結到這個標頭"></a></h2>
233-
<p>除了只是回報你所發現的錯誤之外,同樣也歡迎你提交修正它們的修補程式 (patch)。你可以在 <a class="reference external" href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果你有任何問題,<a class="reference external" href="https://devguide.python.org/">核心導師郵寄清單</a>是一個友善的地方,你可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
233+
<p>除了只是回報你所發現的錯誤之外,同樣也歡迎你提交修正它們的修補程式 (patch)。你可以在 <a class="reference external" href="https://devguide.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果你有任何問題,<a class="reference external" href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">核心導師郵寄清單</a>是一個友善的地方,你可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
234234
</section>
235235
</section>
236236

@@ -358,7 +358,7 @@ <h3>瀏覽</h3>
358358
<a href="https://www.python.org/psf/donations/">Please donate.</a>
359359
<br />
360360
<br />
361-
最後更新於 3月 08, 2025 (05:49 UTC)。
361+
最後更新於 3月 11, 2025 (03:28 UTC)。
362362

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

c-api/abstract.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ <h3>瀏覽</h3>
328328
<a href="https://www.python.org/psf/donations/">Please donate.</a>
329329
<br />
330330
<br />
331-
最後更新於 3月 08, 2025 (05:49 UTC)。
331+
最後更新於 3月 11, 2025 (03:28 UTC)。
332332

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

c-api/allocation.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ <h3>瀏覽</h3>
343343
<a href="https://www.python.org/psf/donations/">Please donate.</a>
344344
<br />
345345
<br />
346-
最後更新於 3月 08, 2025 (05:49 UTC)。
346+
最後更新於 3月 11, 2025 (03:28 UTC)。
347347

348348
<a href="/bugs.html">Found a bug</a>?
349349

c-api/apiabiversion.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ <h3>瀏覽</h3>
375375
<a href="https://www.python.org/psf/donations/">Please donate.</a>
376376
<br />
377377
<br />
378-
最後更新於 3月 08, 2025 (05:49 UTC)。
378+
最後更新於 3月 11, 2025 (03:28 UTC)。
379379

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

c-api/arg.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ <h3>瀏覽</h3>
928928
<a href="https://www.python.org/psf/donations/">Please donate.</a>
929929
<br />
930930
<br />
931-
最後更新於 3月 08, 2025 (05:49 UTC)。
931+
最後更新於 3月 11, 2025 (03:28 UTC)。
932932

933933
<a href="/bugs.html">Found a bug</a>?
934934

c-api/bool.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ <h3>瀏覽</h3>
340340
<a href="https://www.python.org/psf/donations/">Please donate.</a>
341341
<br />
342342
<br />
343-
最後更新於 3月 08, 2025 (05:49 UTC)。
343+
最後更新於 3月 11, 2025 (03:28 UTC)。
344344

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

c-api/buffer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ <h3>瀏覽</h3>
10151015
<a href="https://www.python.org/psf/donations/">Please donate.</a>
10161016
<br />
10171017
<br />
1018-
最後更新於 3月 08, 2025 (05:49 UTC)。
1018+
最後更新於 3月 11, 2025 (03:28 UTC)。
10191019

10201020
<a href="/bugs.html">Found a bug</a>?
10211021

c-api/bytearray.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ <h3>瀏覽</h3>
399399
<a href="https://www.python.org/psf/donations/">Please donate.</a>
400400
<br />
401401
<br />
402-
最後更新於 3月 08, 2025 (05:49 UTC)。
402+
最後更新於 3月 11, 2025 (03:28 UTC)。
403403

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

c-api/bytes.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ <h3>瀏覽</h3>
520520
<a href="https://www.python.org/psf/donations/">Please donate.</a>
521521
<br />
522522
<br />
523-
最後更新於 3月 08, 2025 (05:49 UTC)。
523+
最後更新於 3月 11, 2025 (03:28 UTC)。
524524

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

c-api/call.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ <h3>瀏覽</h3>
651651
<a href="https://www.python.org/psf/donations/">Please donate.</a>
652652
<br />
653653
<br />
654-
最後更新於 3月 08, 2025 (05:49 UTC)。
654+
最後更新於 3月 11, 2025 (03:28 UTC)。
655655

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

c-api/capsule.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ <h3>瀏覽</h3>
440440
<a href="https://www.python.org/psf/donations/">Please donate.</a>
441441
<br />
442442
<br />
443-
最後更新於 3月 08, 2025 (05:49 UTC)。
443+
最後更新於 3月 11, 2025 (03:28 UTC)。
444444

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

c-api/cell.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ <h3>瀏覽</h3>
340340
<a href="https://www.python.org/psf/donations/">Please donate.</a>
341341
<br />
342342
<br />
343-
最後更新於 3月 08, 2025 (05:49 UTC)。
343+
最後更新於 3月 11, 2025 (03:28 UTC)。
344344

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

c-api/code.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ <h3>瀏覽</h3>
605605
<a href="https://www.python.org/psf/donations/">Please donate.</a>
606606
<br />
607607
<br />
608-
最後更新於 3月 08, 2025 (05:49 UTC)。
608+
最後更新於 3月 11, 2025 (03:28 UTC)。
609609

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

c-api/codec.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ <h3>瀏覽</h3>
444444
<a href="https://www.python.org/psf/donations/">Please donate.</a>
445445
<br />
446446
<br />
447-
最後更新於 3月 08, 2025 (05:49 UTC)。
447+
最後更新於 3月 11, 2025 (03:28 UTC)。
448448

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

c-api/complex.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ <h3>瀏覽</h3>
455455
<a href="https://www.python.org/psf/donations/">Please donate.</a>
456456
<br />
457457
<br />
458-
最後更新於 3月 08, 2025 (05:49 UTC)。
458+
最後更新於 3月 11, 2025 (03:28 UTC)。
459459

460460
<a href="/bugs.html">Found a bug</a>?
461461

c-api/concrete.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ <h3>瀏覽</h3>
464464
<a href="https://www.python.org/psf/donations/">Please donate.</a>
465465
<br />
466466
<br />
467-
最後更新於 3月 08, 2025 (05:49 UTC)。
467+
最後更新於 3月 11, 2025 (03:28 UTC)。
468468

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

c-api/contextvars.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ <h3>瀏覽</h3>
450450
<a href="https://www.python.org/psf/donations/">Please donate.</a>
451451
<br />
452452
<br />
453-
最後更新於 3月 08, 2025 (05:49 UTC)。
453+
最後更新於 3月 11, 2025 (03:28 UTC)。
454454

455455
<a href="/bugs.html">Found a bug</a>?
456456

c-api/conversion.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ <h3>瀏覽</h3>
389389
<a href="https://www.python.org/psf/donations/">Please donate.</a>
390390
<br />
391391
<br />
392-
最後更新於 3月 08, 2025 (05:49 UTC)。
392+
最後更新於 3月 11, 2025 (03:28 UTC)。
393393

394394
<a href="/bugs.html">Found a bug</a>?
395395

c-api/coro.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ <h3>瀏覽</h3>
318318
<a href="https://www.python.org/psf/donations/">Please donate.</a>
319319
<br />
320320
<br />
321-
最後更新於 3月 08, 2025 (05:49 UTC)。
321+
最後更新於 3月 11, 2025 (03:28 UTC)。
322322

323323
<a href="/bugs.html">Found a bug</a>?
324324

c-api/datetime.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ <h3>瀏覽</h3>
629629
<a href="https://www.python.org/psf/donations/">Please donate.</a>
630630
<br />
631631
<br />
632-
最後更新於 3月 08, 2025 (05:49 UTC)。
632+
最後更新於 3月 11, 2025 (03:28 UTC)。
633633

634634
<a href="/bugs.html">Found a bug</a>?
635635

c-api/descriptor.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ <h3>瀏覽</h3>
333333
<a href="https://www.python.org/psf/donations/">Please donate.</a>
334334
<br />
335335
<br />
336-
最後更新於 3月 08, 2025 (05:49 UTC)。
336+
最後更新於 3月 11, 2025 (03:28 UTC)。
337337

338338
<a href="/bugs.html">Found a bug</a>?
339339

c-api/dict.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ <h3>瀏覽</h3>
745745
<a href="https://www.python.org/psf/donations/">Please donate.</a>
746746
<br />
747747
<br />
748-
最後更新於 3月 08, 2025 (05:49 UTC)。
748+
最後更新於 3月 11, 2025 (03:28 UTC)。
749749

750750
<a href="/bugs.html">Found a bug</a>?
751751

c-api/exceptions.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,7 @@ <h3>瀏覽</h3>
17071707
<a href="https://www.python.org/psf/donations/">Please donate.</a>
17081708
<br />
17091709
<br />
1710-
最後更新於 3月 08, 2025 (05:49 UTC)。
1710+
最後更新於 3月 11, 2025 (03:28 UTC)。
17111711

17121712
<a href="/bugs.html">Found a bug</a>?
17131713

c-api/file.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ <h3>瀏覽</h3>
365365
<a href="https://www.python.org/psf/donations/">Please donate.</a>
366366
<br />
367367
<br />
368-
最後更新於 3月 08, 2025 (05:49 UTC)。
368+
最後更新於 3月 11, 2025 (03:28 UTC)。
369369

370370
<a href="/bugs.html">Found a bug</a>?
371371

c-api/float.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ <h3>瀏覽</h3>
488488
<a href="https://www.python.org/psf/donations/">Please donate.</a>
489489
<br />
490490
<br />
491-
最後更新於 3月 08, 2025 (05:49 UTC)。
491+
最後更新於 3月 11, 2025 (03:28 UTC)。
492492

493493
<a href="/bugs.html">Found a bug</a>?
494494

c-api/frame.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ <h3>瀏覽</h3>
533533
<a href="https://www.python.org/psf/donations/">Please donate.</a>
534534
<br />
535535
<br />
536-
最後更新於 3月 08, 2025 (05:49 UTC)。
536+
最後更新於 3月 11, 2025 (03:28 UTC)。
537537

538538
<a href="/bugs.html">Found a bug</a>?
539539

c-api/function.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ <h3>瀏覽</h3>
471471
<a href="https://www.python.org/psf/donations/">Please donate.</a>
472472
<br />
473473
<br />
474-
最後更新於 3月 08, 2025 (05:49 UTC)。
474+
最後更新於 3月 11, 2025 (03:28 UTC)。
475475

476476
<a href="/bugs.html">Found a bug</a>?
477477

c-api/gcsupport.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ <h3>瀏覽</h3>
610610
<a href="https://www.python.org/psf/donations/">Please donate.</a>
611611
<br />
612612
<br />
613-
最後更新於 3月 08, 2025 (05:49 UTC)。
613+
最後更新於 3月 11, 2025 (03:28 UTC)。
614614

615615
<a href="/bugs.html">Found a bug</a>?
616616

c-api/gen.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ <h3>瀏覽</h3>
327327
<a href="https://www.python.org/psf/donations/">Please donate.</a>
328328
<br />
329329
<br />
330-
最後更新於 3月 08, 2025 (05:49 UTC)。
330+
最後更新於 3月 11, 2025 (03:28 UTC)。
331331

332332
<a href="/bugs.html">Found a bug</a>?
333333

0 commit comments

Comments
 (0)