Skip to content

Commit

Permalink
Deploying to gh-pages from @ f3042a1 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwang44 committed Dec 29, 2024
1 parent 487d428 commit 5f10495
Show file tree
Hide file tree
Showing 556 changed files with 1,085 additions and 1,072 deletions.
3 changes: 2 additions & 1 deletion _sources/c-api/object.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ Object Protocol
.. note::
Exceptions that occur when this calls :meth:`~object.__getattr__` and
:meth:`~object.__getattribute__` methods are silently ignored.
:meth:`~object.__getattribute__` methods aren't propagated,
but instead given to :func:`sys.unraisablehook`.
For proper error handling, use :c:func:`PyObject_HasAttrWithError`,
:c:func:`PyObject_GetOptionalAttr` or :c:func:`PyObject_GetAttr` instead.
Expand Down
29 changes: 27 additions & 2 deletions _sources/library/enum.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ Module Contents
``KEEP`` which allows for more fine-grained control over how invalid values
are dealt with in an enumeration.

:class:`EnumDict`

A subclass of :class:`dict` for use when subclassing :class:`EnumType`.

:class:`auto`

Instances are replaced with an appropriate value for Enum members.
Expand Down Expand Up @@ -152,6 +156,7 @@ Module Contents

.. versionadded:: 3.6 ``Flag``, ``IntFlag``, ``auto``
.. versionadded:: 3.11 ``StrEnum``, ``EnumCheck``, ``ReprEnum``, ``FlagBoundary``, ``property``, ``member``, ``nonmember``, ``global_enum``, ``show_flag_values``
.. versionadded:: 3.13 ``EnumDict``

---------------

Expand Down Expand Up @@ -821,7 +826,27 @@ Data Types
>>> KeepFlag(2**2 + 2**4)
<KeepFlag.BLUE|16: 20>

.. versionadded:: 3.11
.. versionadded:: 3.11

.. class:: EnumDict

*EnumDict* is a subclass of :class:`dict` that is used as the namespace
for defining enum classes (see :ref:`prepare`).
It is exposed to allow subclasses of :class:`EnumType` with advanced
behavior like having multiple values per member.
It should be called with the name of the enum class being created, otherwise
private names and internal classes will not be handled correctly.

Note that only the :class:`~collections.abc.MutableMapping` interface
(:meth:`~object.__setitem__` and :meth:`~dict.update`) is overridden.
It may be possible to bypass the checks using other :class:`!dict`
operations like :meth:`|= <object.__ior__>`.

.. attribute:: EnumDict.member_names

A list of member names.

.. versionadded:: 3.13

---------------

Expand Down Expand Up @@ -966,7 +991,6 @@ Utilities and Decorators
Should only be used when the enum members are exported
to the module global namespace (see :class:`re.RegexFlag` for an example).


.. versionadded:: 3.11

.. function:: show_flag_values(value)
Expand All @@ -975,6 +999,7 @@ Utilities and Decorators

.. versionadded:: 3.11


---------------

Notes
Expand Down
7 changes: 5 additions & 2 deletions _sources/reference/compound_stmts.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -534,15 +534,18 @@ is semantically equivalent to::
enter = type(manager).__enter__
exit = type(manager).__exit__
value = enter(manager)
hit_except = False

try:
TARGET = value
SUITE
except:
hit_except = True
if not exit(manager, *sys.exc_info()):
raise
else:
exit(manager, None, None, None)
finally:
if not hit_except:
exit(manager, None, None, None)

With more than one item, the context managers are processed as if multiple
:keyword:`with` statements were nested::
Expand Down
7 changes: 7 additions & 0 deletions _sources/whatsnew/3.13.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,13 @@ email
the :cve:`2023-27043` fix.)


enum
----

* :class:`~enum.EnumDict` has been made public to better support subclassing
:class:`~enum.EnumType`.


fractions
---------

Expand Down
2 changes: 1 addition & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
4 changes: 2 additions & 2 deletions bugs.html
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
</section>
<section id="getting-started-contributing-to-python-yourself">
<span id="contributing-to-python"></span><h2>開始讓自己貢獻 Python<a class="headerlink" href="#getting-started-contributing-to-python-yourself" title="連結到這個標頭"></a></h2>
<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>
<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>
</section>
</section>

Expand Down Expand Up @@ -359,7 +359,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/abstract.html
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/allocation.html
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/apiabiversion.html
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/arg.html
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/bool.html
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/buffer.html
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/bytearray.html
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/bytes.html
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/call.html
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/capsule.html
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/cell.html
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/codec.html
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/complex.html
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/concrete.html
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/contextvars.html
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/conversion.html
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/coro.html
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/datetime.html
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/descriptor.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/dict.html
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/exceptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/file.html
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/float.html
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/function.html
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/gcsupport.html
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/gen.html
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
2 changes: 1 addition & 1 deletion c-api/hash.html
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ <h3>瀏覽</h3>
<a href="https://www.python.org/psf/donations/">Please donate.</a>
<br />
<br />
最後更新於 12月 23, 2024 (12:47 UTC)。
最後更新於 12月 29, 2024 (16:06 UTC)。

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

Expand Down
Loading

0 comments on commit 5f10495

Please sign in to comment.