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

+1-1
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

+7-5
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

+15-5
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

+2-2
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

c-api/bool.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ <h3>瀏覽</h3>
423423
<a href="https://www.python.org/psf/donations/">Please donate.</a>
424424
<br />
425425
<br />
426-
最後更新於 May 07, 2024 (07:49 UTC)。
426+
最後更新於 May 08, 2024 (03:32 UTC)。
427427

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

c-api/buffer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ <h3>瀏覽</h3>
10961096
<a href="https://www.python.org/psf/donations/">Please donate.</a>
10971097
<br />
10981098
<br />
1099-
最後更新於 May 07, 2024 (07:49 UTC)。
1099+
最後更新於 May 08, 2024 (03:32 UTC)。
11001100

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

c-api/bytearray.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ <h3>瀏覽</h3>
479479
<a href="https://www.python.org/psf/donations/">Please donate.</a>
480480
<br />
481481
<br />
482-
最後更新於 May 07, 2024 (07:49 UTC)。
482+
最後更新於 May 08, 2024 (03:32 UTC)。
483483

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

c-api/bytes.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ <h3>瀏覽</h3>
603603
<a href="https://www.python.org/psf/donations/">Please donate.</a>
604604
<br />
605605
<br />
606-
最後更新於 May 07, 2024 (07:49 UTC)。
606+
最後更新於 May 08, 2024 (03:32 UTC)。
607607

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

c-api/call.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ <h3>瀏覽</h3>
738738
<a href="https://www.python.org/psf/donations/">Please donate.</a>
739739
<br />
740740
<br />
741-
最後更新於 May 07, 2024 (07:49 UTC)。
741+
最後更新於 May 08, 2024 (03:32 UTC)。
742742

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

c-api/capsule.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ <h3>瀏覽</h3>
523523
<a href="https://www.python.org/psf/donations/">Please donate.</a>
524524
<br />
525525
<br />
526-
最後更新於 May 07, 2024 (07:49 UTC)。
526+
最後更新於 May 08, 2024 (03:32 UTC)。
527527

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

c-api/cell.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ <h3>瀏覽</h3>
422422
<a href="https://www.python.org/psf/donations/">Please donate.</a>
423423
<br />
424424
<br />
425-
最後更新於 May 07, 2024 (07:49 UTC)。
425+
最後更新於 May 08, 2024 (03:32 UTC)。
426426

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

c-api/code.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ <h3>瀏覽</h3>
678678
<a href="https://www.python.org/psf/donations/">Please donate.</a>
679679
<br />
680680
<br />
681-
最後更新於 May 07, 2024 (07:49 UTC)。
681+
最後更新於 May 08, 2024 (03:32 UTC)。
682682

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

c-api/codec.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ <h3>瀏覽</h3>
527527
<a href="https://www.python.org/psf/donations/">Please donate.</a>
528528
<br />
529529
<br />
530-
最後更新於 May 07, 2024 (07:49 UTC)。
530+
最後更新於 May 08, 2024 (03:32 UTC)。
531531

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

c-api/complex.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ <h3>瀏覽</h3>
511511
<a href="https://www.python.org/psf/donations/">Please donate.</a>
512512
<br />
513513
<br />
514-
最後更新於 May 07, 2024 (07:49 UTC)。
514+
最後更新於 May 08, 2024 (03:32 UTC)。
515515

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

c-api/concrete.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ <h3>瀏覽</h3>
546546
<a href="https://www.python.org/psf/donations/">Please donate.</a>
547547
<br />
548548
<br />
549-
最後更新於 May 07, 2024 (07:49 UTC)。
549+
最後更新於 May 08, 2024 (03:32 UTC)。
550550

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

c-api/contextvars.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-
最後更新於 May 07, 2024 (07:49 UTC)。
536+
最後更新於 May 08, 2024 (03:32 UTC)。
537537

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

c-api/conversion.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ <h3>瀏覽</h3>
472472
<a href="https://www.python.org/psf/donations/">Please donate.</a>
473473
<br />
474474
<br />
475-
最後更新於 May 07, 2024 (07:49 UTC)。
475+
最後更新於 May 08, 2024 (03:32 UTC)。
476476

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

c-api/coro.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ <h3>瀏覽</h3>
401401
<a href="https://www.python.org/psf/donations/">Please donate.</a>
402402
<br />
403403
<br />
404-
最後更新於 May 07, 2024 (07:49 UTC)。
404+
最後更新於 May 08, 2024 (03:32 UTC)。
405405

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

c-api/datetime.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ <h3>瀏覽</h3>
712712
<a href="https://www.python.org/psf/donations/">Please donate.</a>
713713
<br />
714714
<br />
715-
最後更新於 May 07, 2024 (07:49 UTC)。
715+
最後更新於 May 08, 2024 (03:32 UTC)。
716716

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

c-api/descriptor.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ <h3>瀏覽</h3>
416416
<a href="https://www.python.org/psf/donations/">Please donate.</a>
417417
<br />
418418
<br />
419-
最後更新於 May 07, 2024 (07:49 UTC)。
419+
最後更新於 May 08, 2024 (03:32 UTC)。
420420

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

c-api/dict.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ <h3>瀏覽</h3>
725725
<a href="https://www.python.org/psf/donations/">Please donate.</a>
726726
<br />
727727
<br />
728-
最後更新於 May 07, 2024 (07:49 UTC)。
728+
最後更新於 May 08, 2024 (03:32 UTC)。
729729

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

c-api/exceptions.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1772,7 +1772,7 @@ <h3>瀏覽</h3>
17721772
<a href="https://www.python.org/psf/donations/">Please donate.</a>
17731773
<br />
17741774
<br />
1775-
最後更新於 May 07, 2024 (07:49 UTC)。
1775+
最後更新於 May 08, 2024 (03:32 UTC)。
17761776

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

c-api/file.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ <h3>瀏覽</h3>
448448
<a href="https://www.python.org/psf/donations/">Please donate.</a>
449449
<br />
450450
<br />
451-
最後更新於 May 07, 2024 (07:49 UTC)。
451+
最後更新於 May 08, 2024 (03:32 UTC)。
452452

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

c-api/float.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ <h3>瀏覽</h3>
571571
<a href="https://www.python.org/psf/donations/">Please donate.</a>
572572
<br />
573573
<br />
574-
最後更新於 May 07, 2024 (07:49 UTC)。
574+
最後更新於 May 08, 2024 (03:32 UTC)。
575575

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

c-api/frame.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ <h3>瀏覽</h3>
582582
<a href="https://www.python.org/psf/donations/">Please donate.</a>
583583
<br />
584584
<br />
585-
最後更新於 May 07, 2024 (07:49 UTC)。
585+
最後更新於 May 08, 2024 (03:32 UTC)。
586586

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

c-api/function.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ <h3>瀏覽</h3>
550550
<a href="https://www.python.org/psf/donations/">Please donate.</a>
551551
<br />
552552
<br />
553-
最後更新於 May 07, 2024 (07:49 UTC)。
553+
最後更新於 May 08, 2024 (03:32 UTC)。
554554

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

c-api/gcsupport.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ <h3>瀏覽</h3>
693693
<a href="https://www.python.org/psf/donations/">Please donate.</a>
694694
<br />
695695
<br />
696-
最後更新於 May 07, 2024 (07:49 UTC)。
696+
最後更新於 May 08, 2024 (03:32 UTC)。
697697

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

c-api/gen.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ <h3>瀏覽</h3>
410410
<a href="https://www.python.org/psf/donations/">Please donate.</a>
411411
<br />
412412
<br />
413-
最後更新於 May 07, 2024 (07:49 UTC)。
413+
最後更新於 May 08, 2024 (03:32 UTC)。
414414

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

0 commit comments

Comments
 (0)