Skip to content

Commit d254bda

Browse files
Deploy preview for PR 1231 🛫
1 parent 004eee1 commit d254bda

591 files changed

Lines changed: 841 additions & 798 deletions

File tree

Some content is hidden

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

pr-preview/pr-1231/_sources/c-api/exceptions.rst.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,21 @@ Printing and clearing
119119
.. versionadded:: 3.12
120120
121121
122+
.. c:function:: void PyErr_Display(PyObject *unused, PyObject *value, PyObject *tb)
123+
124+
Legacy variant of :c:func:`PyErr_DisplayException`.
125+
126+
Print the exception *value* with its traceback to :data:`sys.stderr`.
127+
If *value* has no traceback set, *tb* is used as its traceback.
128+
The first argument is ignored.
129+
130+
If :data:`sys.stderr` is ``None``, nothing is printed.
131+
If :data:`sys.stderr` is not set, the exception is dumped to the
132+
C ``stderr`` stream instead.
133+
134+
.. deprecated:: 3.12
135+
Use :c:func:`PyErr_DisplayException` instead.
136+
122137
Raising exceptions
123138
==================
124139

pr-preview/pr-1231/_sources/c-api/init_config.rst.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,9 +1237,9 @@ PyConfig
12371237
12381238
.. c:member:: wchar_t* base_executable
12391239
1240-
Python base executable: :data:`sys._base_executable`.
1240+
Python base executable: ``sys._base_executable``.
12411241
1242-
Set by the :envvar:`__PYVENV_LAUNCHER__` environment variable.
1242+
Set by the ``__PYVENV_LAUNCHER__`` environment variable.
12431243
12441244
Set from :c:member:`PyConfig.executable` if ``NULL``.
12451245
@@ -1745,7 +1745,7 @@ PyConfig
17451745
17461746
* On macOS, use :envvar:`PYTHONEXECUTABLE` environment variable if set.
17471747
* If the ``WITH_NEXT_FRAMEWORK`` macro is defined, use
1748-
:envvar:`__PYVENV_LAUNCHER__` environment variable if set.
1748+
``__PYVENV_LAUNCHER__`` environment variable if set.
17491749
* Use ``argv[0]`` of :c:member:`~PyConfig.argv` if available and
17501750
non-empty.
17511751
* Otherwise, use ``L"python"`` on Windows, or ``L"python3"`` on other
@@ -1981,8 +1981,7 @@ PyConfig
19811981
19821982
The :mod:`warnings` module adds :data:`sys.warnoptions` in the reverse
19831983
order: the last :c:member:`PyConfig.warnoptions` item becomes the first
1984-
item of :data:`warnings.filters` which is checked first (highest
1985-
priority).
1984+
item of ``warnings.filters`` which is checked first (highest priority).
19861985
19871986
The :option:`-W` command line options adds its value to
19881987
:c:member:`~PyConfig.warnoptions`, it can be used multiple times.

pr-preview/pr-1231/_sources/c-api/intro.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ in the Unix build, compiler optimization is disabled.
10731073
In addition to the reference count debugging described below, extra checks are
10741074
performed, see :ref:`Python Debug Build <debug-build>`.
10751075

1076-
Defining :c:macro:`Py_TRACE_REFS` enables reference tracing
1076+
Defining ``Py_TRACE_REFS`` enables reference tracing
10771077
(see the :option:`configure --with-trace-refs option <--with-trace-refs>`).
10781078
When defined, a circular doubly linked list of active objects is maintained by adding two extra
10791079
fields to every :c:type:`PyObject`. Total allocations are tracked as well. Upon

pr-preview/pr-1231/_sources/library/os.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,9 +793,9 @@ process and user.
793793
Returns information identifying the current operating system.
794794
The return value is a :class:`uname_result`.
795795

796-
On macOS, iOS and Android, this returns the *kernel* name and version (i.e.,
796+
On macOS, iOS and Android, this returns the *kernel* name and release (i.e.,
797797
``'Darwin'`` on macOS and iOS; ``'Linux'`` on Android). :func:`platform.uname`
798-
can be used to get the user-facing operating system name and version on iOS and
798+
can be used to get the user-facing operating system name and release on iOS and
799799
Android.
800800

801801
.. seealso::

pr-preview/pr-1231/_sources/library/platform.rst.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ Cross platform
144144
Returns the system's release, e.g. ``'2.2.0'`` or ``'NT'``. An empty string is
145145
returned if the value cannot be determined.
146146

147+
On iOS and Android, this is the user-facing OS release. To obtain the
148+
Darwin or Linux kernel release, use :func:`os.uname`.
147149

148150
.. function:: system()
149151

@@ -166,9 +168,6 @@ Cross platform
166168
Returns the system's release version, e.g. ``'#3 on degas'``. An empty string is
167169
returned if the value cannot be determined.
168170

169-
On iOS and Android, this is the user-facing OS version. To obtain the
170-
Darwin or Linux kernel version, use :func:`os.uname`.
171-
172171
.. function:: uname()
173172

174173
Fairly portable uname interface. Returns a :func:`~collections.namedtuple`

pr-preview/pr-1231/_sources/library/tempfile.rst.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ The module defines the following user-callable items:
230230
The file descriptor is :ref:`not inherited by child processes <fd_inheritance>`.
231231

232232
Unlike :func:`TemporaryFile`, the user of :func:`mkstemp` is responsible
233-
for deleting the temporary file when done with it.
233+
for closing the file descriptor (for example, using :func:`os.close`) and
234+
deleting the temporary file (for example, using :func:`os.remove`).
234235

235236
If *suffix* is not ``None``, the file name will end with that suffix,
236237
otherwise there will be no suffix. :func:`mkstemp` does not put a dot

pr-preview/pr-1231/_sources/using/mac.rst.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.. highlight:: none
12

23
.. _using-on-mac:
34

pr-preview/pr-1231/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ <h3>導航</h3>
356356
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
357357
<br>
358358
<br>
359-
最後更新於 7月 30, 2026 (00:34 UTC)。
359+
最後更新於 7月 31, 2026 (00:37 UTC)。
360360

361361
<a href="/bugs.html">發現 bug</a>
362362

pr-preview/pr-1231/bugs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
250250
</section>
251251
<section id="getting-started-contributing-to-python-yourself">
252252
<span id="contributing-to-python"></span><h2>開始讓自己貢獻 Python<a class="headerlink" href="#getting-started-contributing-to-python-yourself" title="連結到這個標頭"></a></h2>
253-
<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>
253+
<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>
254254
</section>
255255
</section>
256256

@@ -393,7 +393,7 @@ <h3>導航</h3>
393393
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
394394
<br>
395395
<br>
396-
最後更新於 7月 30, 2026 (00:34 UTC)。
396+
最後更新於 7月 31, 2026 (00:37 UTC)。
397397

398398
<a href="/bugs.html">發現 bug</a>
399399

pr-preview/pr-1231/c-api/abstract.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ <h3>導航</h3>
365365
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
366366
<br>
367367
<br>
368-
最後更新於 7月 30, 2026 (00:34 UTC)。
368+
最後更新於 7月 31, 2026 (00:37 UTC)。
369369

370370
<a href="/bugs.html">發現 bug</a>
371371

0 commit comments

Comments
 (0)