Skip to content

Commit 35bc74b

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 5bf7f5c6
1 parent dec0228 commit 35bc74b

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

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 documentation string) 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/shutil.po

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

444444
#: ../../library/shutil.rst:340
445-
msgid "The *dir_fd* parameter."
445+
#, fuzzy
446+
msgid "Added the *dir_fd* parameter."
446447
msgstr "*dir_fd* 參數。"
447448

448449
#: ../../library/shutil.rst:343

0 commit comments

Comments
 (0)