7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"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 "
11
11
"PO-Revision-Date : 2018-05-23 16:02+0000\n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -551,20 +551,20 @@ msgid ""
551
551
"corresponding attributes from the original function. The default values for "
552
552
"these arguments are the module level constants ``WRAPPER_ASSIGNMENTS`` "
553
553
"(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)."
557
557
msgstr ""
558
558
559
- #: ../../library/functools.rst:651
559
+ #: ../../library/functools.rst:652
560
560
msgid ""
561
561
"To allow access to the original function for introspection and other "
562
562
"purposes (e.g. bypassing a caching decorator such as :func:`lru_cache`), "
563
563
"this function automatically adds a ``__wrapped__`` attribute to the wrapper "
564
564
"that refers to the function being wrapped."
565
565
msgstr ""
566
566
567
- #: ../../library/functools.rst:656
567
+ #: ../../library/functools.rst:657
568
568
msgid ""
569
569
"The main intended use for this function is in :term:`decorator` functions "
570
570
"which wrap the decorated function and return the wrapper. If the wrapper "
@@ -573,7 +573,7 @@ msgid ""
573
573
"is typically less than helpful."
574
574
msgstr ""
575
575
576
- #: ../../library/functools.rst:662
576
+ #: ../../library/functools.rst:663
577
577
msgid ""
578
578
":func:`update_wrapper` may be used with callables other than functions. Any "
579
579
"attributes named in *assigned* or *updated* that are missing from the object "
@@ -582,64 +582,68 @@ msgid ""
582
582
"wrapper function itself is missing any attributes named in *updated*."
583
583
msgstr ""
584
584
585
- #: ../../library/functools.rst:668
585
+ #: ../../library/functools.rst:669
586
586
msgid ""
587
587
"The ``__wrapped__`` attribute is now automatically added. The "
588
588
"``__annotations__`` attribute is now copied by default. Missing attributes "
589
589
"no longer trigger an :exc:`AttributeError`."
590
590
msgstr ""
591
591
592
- #: ../../library/functools.rst:673
592
+ #: ../../library/functools.rst:674
593
593
msgid ""
594
594
"The ``__wrapped__`` attribute now always refers to the wrapped function, "
595
595
"even if that function defined a ``__wrapped__`` attribute. (see :issue:"
596
596
"`17482`)"
597
597
msgstr ""
598
598
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
600
604
msgid ""
601
605
"This is a convenience function for invoking :func:`update_wrapper` as a "
602
606
"function decorator when defining a wrapper function. It is equivalent to "
603
607
"``partial(update_wrapper, wrapped=wrapped, assigned=assigned, "
604
608
"updated=updated)``. For example::"
605
609
msgstr ""
606
610
607
- #: ../../library/functools.rst:707
611
+ #: ../../library/functools.rst:711
608
612
msgid ""
609
613
"Without the use of this decorator factory, the name of the example function "
610
614
"would have been ``'wrapper'``, and the docstring of the original :func:"
611
615
"`example` would have been lost."
612
616
msgstr ""
613
617
614
- #: ../../library/functools.rst:715
618
+ #: ../../library/functools.rst:719
615
619
msgid ":class:`partial` Objects"
616
620
msgstr ":class:`partial` 物件"
617
621
618
- #: ../../library/functools.rst:717
622
+ #: ../../library/functools.rst:721
619
623
msgid ""
620
624
":class:`partial` objects are callable objects created by :func:`partial`. "
621
625
"They have three read-only attributes:"
622
626
msgstr ""
623
627
624
- #: ../../library/functools.rst:723
628
+ #: ../../library/functools.rst:727
625
629
msgid ""
626
630
"A callable object or function. Calls to the :class:`partial` object will be "
627
631
"forwarded to :attr:`func` with new arguments and keywords."
628
632
msgstr ""
629
633
630
- #: ../../library/functools.rst:729
634
+ #: ../../library/functools.rst:733
631
635
msgid ""
632
636
"The leftmost positional arguments that will be prepended to the positional "
633
637
"arguments provided to a :class:`partial` object call."
634
638
msgstr ""
635
639
636
- #: ../../library/functools.rst:735
640
+ #: ../../library/functools.rst:739
637
641
msgid ""
638
642
"The keyword arguments that will be supplied when the :class:`partial` object "
639
643
"is called."
640
644
msgstr ""
641
645
642
- #: ../../library/functools.rst:738
646
+ #: ../../library/functools.rst:742
643
647
msgid ""
644
648
":class:`partial` objects are like :class:`function` objects in that they are "
645
649
"callable, weak referenceable, and can have attributes. There are some "
0 commit comments