Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit98a4bdb

Browse files
Sync with CPython 3.12 (#895)
1 parent29fd773 commit98a4bdb

17 files changed

+2581
-2571
lines changed

‎.scripts/poetry.lock

Lines changed: 139 additions & 156 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎library/dataclasses.po

Lines changed: 138 additions & 134 deletions
Large diffs are not rendered by default.

‎library/functions.po

Lines changed: 296 additions & 289 deletions
Large diffs are not rendered by default.

‎library/functools.po

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2024-05-09 00:03+0000\n"
10+
"POT-Creation-Date:2024-05-14 00:03+0000\n"
1111
"PO-Revision-Date:2018-05-23 16:02+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -551,20 +551,20 @@ msgid ""
551551
"corresponding attributes from the original function. The default values for "
552552
"these arguments are the module level constants ``WRAPPER_ASSIGNMENTS`` "
553553
"(which assigns to the wrapper function's ``__module__``, ``__name__``, "
554-
"``__qualname__``, ``__annotations__``and ``__doc__``, the documentation "
555-
"string) and ``WRAPPER_UPDATES`` (which updates the wrapper function's "
556-
"``__dict__``, i.e. the instance dictionary)."
554+
"``__qualname__``, ``__annotations__``, ``__type_params__``,and ``__doc__``, "
555+
"the documentationstring) and ``WRAPPER_UPDATES`` (which updates the wrapper "
556+
"function's``__dict__``, i.e. the instance dictionary)."
557557
msgstr""
558558

559-
#:../../library/functools.rst:651
559+
#:../../library/functools.rst:652
560560
msgid""
561561
"To allow access to the original function for introspection and other "
562562
"purposes (e.g. bypassing a caching decorator such as :func:`lru_cache`), "
563563
"this function automatically adds a ``__wrapped__`` attribute to the wrapper "
564564
"that refers to the function being wrapped."
565565
msgstr""
566566

567-
#:../../library/functools.rst:656
567+
#:../../library/functools.rst:657
568568
msgid""
569569
"The main intended use for this function is in :term:`decorator` functions "
570570
"which wrap the decorated function and return the wrapper. If the wrapper "
@@ -573,7 +573,7 @@ msgid ""
573573
"is typically less than helpful."
574574
msgstr""
575575

576-
#:../../library/functools.rst:662
576+
#:../../library/functools.rst:663
577577
msgid""
578578
":func:`update_wrapper` may be used with callables other than functions. Any "
579579
"attributes named in *assigned* or *updated* that are missing from the object "
@@ -582,64 +582,68 @@ msgid ""
582582
"wrapper function itself is missing any attributes named in *updated*."
583583
msgstr""
584584

585-
#:../../library/functools.rst:668
585+
#:../../library/functools.rst:669
586586
msgid""
587587
"The ``__wrapped__`` attribute is now automatically added. The "
588588
"``__annotations__`` attribute is now copied by default. Missing attributes "
589589
"no longer trigger an :exc:`AttributeError`."
590590
msgstr""
591591

592-
#:../../library/functools.rst:673
592+
#:../../library/functools.rst:674
593593
msgid""
594594
"The ``__wrapped__`` attribute now always refers to the wrapped function, "
595595
"even if that function defined a ``__wrapped__`` attribute. (see :issue:"
596596
"`17482`)"
597597
msgstr""
598598

599-
#:../../library/functools.rst:681
599+
#:../../library/functools.rst:679
600+
msgid"The ``__type_params__`` attribute is now copied by default."
601+
msgstr""
602+
603+
#:../../library/functools.rst:685
600604
msgid""
601605
"This is a convenience function for invoking :func:`update_wrapper` as a "
602606
"function decorator when defining a wrapper function. It is equivalent to "
603607
"``partial(update_wrapper, wrapped=wrapped, assigned=assigned, "
604608
"updated=updated)``. For example::"
605609
msgstr""
606610

607-
#:../../library/functools.rst:707
611+
#:../../library/functools.rst:711
608612
msgid""
609613
"Without the use of this decorator factory, the name of the example function "
610614
"would have been ``'wrapper'``, and the docstring of the original :func:"
611615
"`example` would have been lost."
612616
msgstr""
613617

614-
#:../../library/functools.rst:715
618+
#:../../library/functools.rst:719
615619
msgid":class:`partial` Objects"
616620
msgstr":class:`partial` 物件"
617621

618-
#:../../library/functools.rst:717
622+
#:../../library/functools.rst:721
619623
msgid""
620624
":class:`partial` objects are callable objects created by :func:`partial`. "
621625
"They have three read-only attributes:"
622626
msgstr""
623627

624-
#:../../library/functools.rst:723
628+
#:../../library/functools.rst:727
625629
msgid""
626630
"A callable object or function. Calls to the :class:`partial` object will be "
627631
"forwarded to :attr:`func` with new arguments and keywords."
628632
msgstr""
629633

630-
#:../../library/functools.rst:729
634+
#:../../library/functools.rst:733
631635
msgid""
632636
"The leftmost positional arguments that will be prepended to the positional "
633637
"arguments provided to a :class:`partial` object call."
634638
msgstr""
635639

636-
#:../../library/functools.rst:735
640+
#:../../library/functools.rst:739
637641
msgid""
638642
"The keyword arguments that will be supplied when the :class:`partial` object "
639643
"is called."
640644
msgstr""
641645

642-
#:../../library/functools.rst:738
646+
#:../../library/functools.rst:742
643647
msgid""
644648
":class:`partial` objects are like :class:`function` objects in that they are "
645649
"callable, weak referenceable, and can have attributes. There are some "

‎library/hashlib.po

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2024-05-09 00:03+0000\n"
10+
"POT-Creation-Date:2024-05-23 00:03+0000\n"
1111
"PO-Revision-Date:2018-05-23 16:03+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -351,8 +351,9 @@ msgstr ""
351351

352352
#:../../library/hashlib.rst:331
353353
msgid""
354-
"*dklen* is the length of the derived key. If *dklen* is ``None`` then the "
355-
"digest size of the hash algorithm *hash_name* is used, e.g. 64 for SHA-512."
354+
"*dklen* is the length of the derived key in bytes. If *dklen* is ``None`` "
355+
"then the digest size of the hash algorithm *hash_name* is used, e.g. 64 for "
356+
"SHA-512."
356357
msgstr""
357358

358359
#:../../library/hashlib.rst:340
@@ -383,7 +384,7 @@ msgstr ""
383384
msgid""
384385
"*n* is the CPU/Memory cost factor, *r* the block size, *p* parallelization "
385386
"factor and *maxmem* limits memory (OpenSSL 1.1.0 defaults to 32 MiB). "
386-
"*dklen* is the length of the derived key."
387+
"*dklen* is the length of the derived key in bytes."
387388
msgstr""
388389

389390
#:../../library/hashlib.rst:366

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp