Skip to content

Commit bbe4a00

Browse files
committed
Deploying to gh-pages from @ d316665 🚀
1 parent 25971c8 commit bbe4a00

File tree

530 files changed

+586
-557
lines changed

Some content is hidden

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

530 files changed

+586
-557
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: a14babbf9c95feafbe69bc20e146e373
3+
config: af7da336cd20b223d472dd150b7e9996
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_sources/library/enum.rst.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,15 @@ Data Types
392392
in the member assignment will be passed; e.g.
393393

394394
>>> from enum import Enum
395-
>>> class MyIntEnum(Enum):
396-
... SEVENTEEN = '1a', 16
395+
>>> class MyIntEnum(int, Enum):
396+
... TWENTYSIX = '1a', 16
397397

398-
results in the call ``int('1a', 16)`` and a value of ``17`` for the member.
398+
results in the call ``int('1a', 16)`` and a value of ``26`` for the member.
399399

400-
.. note:: When writing a custom ``__new__``, do not use ``super().__new__`` --
401-
call the appropriate ``__new__`` instead.
400+
.. note::
401+
402+
When writing a custom ``__new__``, do not use ``super().__new__`` --
403+
call the appropriate ``__new__`` instead.
402404

403405
.. method:: Enum.__repr__(self)
404406

_sources/library/functions.rst.txt

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -526,9 +526,20 @@ are always available. They are listed here in alphabetical order.
526526

527527
.. function:: eval(expression, globals=None, locals=None)
528528

529-
The arguments are a string and optional globals and locals. If provided,
530-
*globals* must be a dictionary. If provided, *locals* can be any mapping
531-
object.
529+
:param expression:
530+
A Python expression.
531+
:type expression: :class:`str` | :ref:`code object <code-objects>`
532+
533+
:param globals:
534+
The global namespace (default: ``None``).
535+
:type globals: :class:`dict` | ``None``
536+
537+
:param locals:
538+
The local namespace (default: ``None``).
539+
:type locals: :term:`mapping` | ``None``
540+
541+
:returns: The result of the evaluated expression.
542+
:raises: Syntax errors are reported as exceptions.
532543

533544
The *expression* argument is parsed and evaluated as a Python expression
534545
(technically speaking, a condition list) using the *globals* and *locals*
@@ -545,8 +556,7 @@ are always available. They are listed here in alphabetical order.
545556
:term:`nested scopes <nested scope>` (non-locals) in the enclosing
546557
environment.
547558

548-
The return value is the result of
549-
the evaluated expression. Syntax errors are reported as exceptions. Example:
559+
Example:
550560

551561
>>> x = 1
552562
>>> eval('x+1')

_sources/tutorial/appendix.rst.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Executable Python Scripts
4040
On BSD'ish Unix systems, Python scripts can be made directly executable, like
4141
shell scripts, by putting the line ::
4242

43-
#!/usr/bin/env python3.5
43+
#!/usr/bin/env python3
4444

4545
(assuming that the interpreter is on the user's :envvar:`PATH`) at the beginning
4646
of the script and giving the file an executable mode. The ``#!`` must be the
@@ -107,7 +107,7 @@ of your user site-packages directory. Start Python and run this code::
107107

108108
>>> import site
109109
>>> site.getusersitepackages()
110-
'/home/user/.local/lib/python3.5/site-packages'
110+
'/home/user/.local/lib/python3.x/site-packages'
111111

112112
Now you can create a file named :file:`usercustomize.py` in that directory and
113113
put anything you want in it. It will affect every invocation of Python, unless

about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ <h3>瀏覽</h3>
402402
<a href="https://www.python.org/psf/donations/">Please donate.</a>
403403
<br />
404404
<br />
405-
最後更新於 May 07, 2024 (07:49 UTC)。
405+
最後更新於 May 08, 2024 (03:32 UTC)。
406406

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

bugs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ <h3>瀏覽</h3>
441441
<a href="https://www.python.org/psf/donations/">Please donate.</a>
442442
<br />
443443
<br />
444-
最後更新於 May 07, 2024 (07:49 UTC)。
444+
最後更新於 May 08, 2024 (03:32 UTC)。
445445

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

c-api/abstract.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ <h3>瀏覽</h3>
412412
<a href="https://www.python.org/psf/donations/">Please donate.</a>
413413
<br />
414414
<br />
415-
最後更新於 May 07, 2024 (07:49 UTC)。
415+
最後更新於 May 08, 2024 (03:32 UTC)。
416416

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

c-api/allocation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ <h3>瀏覽</h3>
426426
<a href="https://www.python.org/psf/donations/">Please donate.</a>
427427
<br />
428428
<br />
429-
最後更新於 May 07, 2024 (07:49 UTC)。
429+
最後更新於 May 08, 2024 (03:32 UTC)。
430430

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

c-api/apiabiversion.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ <h3>瀏覽</h3>
458458
<a href="https://www.python.org/psf/donations/">Please donate.</a>
459459
<br />
460460
<br />
461-
最後更新於 May 07, 2024 (07:49 UTC)。
461+
最後更新於 May 08, 2024 (03:32 UTC)。
462462

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

c-api/arg.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ <h3>瀏覽</h3>
969969
<a href="https://www.python.org/psf/donations/">Please donate.</a>
970970
<br />
971971
<br />
972-
最後更新於 May 07, 2024 (07:49 UTC)。
972+
最後更新於 May 08, 2024 (03:32 UTC)。
973973

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

0 commit comments

Comments
 (0)