Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d80603f

Browse files
[po] auto sync
1 parent 23f8149 commit d80603f

4 files changed

Lines changed: 6413 additions & 6591 deletions

File tree

library/functools.po

Lines changed: 18 additions & 219 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
66
# Translators:
7+
# ww song <[email protected]>, 2018
78
# zc Jin <[email protected]>, 2018
89
# akira asura <[email protected]>, 2019
910
# zkonge <[email protected]>, 2019
1011
# MustAndy <[email protected]>, 2019
1112
# Makdon <[email protected]>, 2019
1213
# MuSheng Chen <[email protected]>, 2019
1314
# Freesand Leo <[email protected]>, 2020
14-
# ww song <[email protected]>, 2020
1515
#
1616
#, fuzzy
1717
msgid ""
1818
msgstr ""
1919
"Project-Id-Version: Python 3.9\n"
2020
"Report-Msgid-Bugs-To: \n"
21-
"POT-Creation-Date: 2020-05-31 09:25+0000\n"
21+
"POT-Creation-Date: 2020-06-01 03:13+0000\n"
2222
"PO-Revision-Date: 2017-02-16 23:12+0000\n"
23-
"Last-Translator: ww song <sww4718168@gmail.com>, 2020\n"
23+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2020\n"
2424
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2525
"MIME-Version: 1.0\n"
2626
"Content-Type: text/plain; charset=UTF-8\n"
@@ -486,183 +486,6 @@ msgstr "同样的模式也被用于其他类似的装饰器: ``staticmethod``, `
486486

487487
#: ../../library/functools.rst:548
488488
msgid ""
489-
"Provides functionality to topologically sort a graph of hashable nodes."
490-
msgstr ""
491-
492-
#: ../../library/functools.rst:550
493-
msgid ""
494-
"A topological order is a linear ordering of the vertices in a graph such "
495-
"that for every directed edge u -> v from vertex u to vertex v, vertex u "
496-
"comes before vertex v in the ordering. For instance, the vertices of the "
497-
"graph may represent tasks to be performed, and the edges may represent "
498-
"constraints that one task must be performed before another; in this example,"
499-
" a topological ordering is just a valid sequence for the tasks. A complete "
500-
"topological ordering is possible if and only if the graph has no directed "
501-
"cycles, that is, if it is a directed acyclic graph."
502-
msgstr ""
503-
504-
#: ../../library/functools.rst:559
505-
msgid ""
506-
"If the optional *graph* argument is provided it must be a dictionary "
507-
"representing a directed acyclic graph where the keys are nodes and the "
508-
"values are iterables of all predecessors of that node in the graph (the "
509-
"nodes that have edges that point to the value in the key). Additional nodes "
510-
"can be added to the graph using the :meth:`~TopologicalSorter.add` method."
511-
msgstr ""
512-
513-
#: ../../library/functools.rst:565
514-
msgid ""
515-
"In the general case, the steps required to perform the sorting of a given "
516-
"graph are as follows:"
517-
msgstr ""
518-
519-
#: ../../library/functools.rst:568
520-
msgid ""
521-
"Create an instance of the :class:`TopologicalSorter` with an optional "
522-
"initial graph."
523-
msgstr ""
524-
525-
#: ../../library/functools.rst:570
526-
msgid "Add additional nodes to the graph."
527-
msgstr ""
528-
529-
#: ../../library/functools.rst:571
530-
msgid "Call :meth:`~TopologicalSorter.prepare` on the graph."
531-
msgstr ""
532-
533-
#: ../../library/functools.rst:572
534-
msgid ""
535-
"While :meth:`~TopologicalSorter.is_active` is ``True``, iterate over the "
536-
"nodes returned by :meth:`~TopologicalSorter.get_ready` and process them. "
537-
"Call :meth:`~TopologicalSorter.done` on each node as it finishes processing."
538-
msgstr ""
539-
540-
#: ../../library/functools.rst:577
541-
msgid ""
542-
"In case just an immediate sorting of the nodes in the graph is required and "
543-
"no parallelism is involved, the convenience method "
544-
":meth:`TopologicalSorter.static_order` can be used directly:"
545-
msgstr ""
546-
547-
#: ../../library/functools.rst:588
548-
msgid ""
549-
"The class is designed to easily support parallel processing of the nodes as "
550-
"they become ready. For instance::"
551-
msgstr ""
552-
553-
#: ../../library/functools.rst:615
554-
msgid ""
555-
"Add a new node and its predecessors to the graph. Both the *node* and all "
556-
"elements in *predecessors* must be hashable."
557-
msgstr ""
558-
559-
#: ../../library/functools.rst:618
560-
msgid ""
561-
"If called multiple times with the same node argument, the set of "
562-
"dependencies will be the union of all dependencies passed in."
563-
msgstr ""
564-
565-
#: ../../library/functools.rst:621
566-
msgid ""
567-
"It is possible to add a node with no dependencies (*predecessors* is not "
568-
"provided) or to provide a dependency twice. If a node that has not been "
569-
"provided before is included among *predecessors* it will be automatically "
570-
"added to the graph with no predecessors of its own."
571-
msgstr ""
572-
573-
#: ../../library/functools.rst:626
574-
msgid ""
575-
"Raises :exc:`ValueError` if called after :meth:`~TopologicalSorter.prepare`."
576-
msgstr ""
577-
578-
#: ../../library/functools.rst:630
579-
msgid ""
580-
"Mark the graph as finished and check for cycles in the graph. If any cycle "
581-
"is detected, :exc:`CycleError` will be raised, but "
582-
":meth:`~TopologicalSorter.get_ready` can still be used to obtain as many "
583-
"nodes as possible until cycles block more progress. After a call to this "
584-
"function, the graph cannot be modified, and therefore no more nodes can be "
585-
"added using :meth:`~TopologicalSorter.add`."
586-
msgstr ""
587-
588-
#: ../../library/functools.rst:639
589-
msgid ""
590-
"Returns ``True`` if more progress can be made and ``False`` otherwise. "
591-
"Progress can be made if cycles do not block the resolution and either there "
592-
"are still nodes ready that haven't yet been returned by "
593-
":meth:`TopologicalSorter.get_ready` or the number of nodes marked "
594-
":meth:`TopologicalSorter.done` is less than the number that have been "
595-
"returned by :meth:`TopologicalSorter.get_ready`."
596-
msgstr ""
597-
598-
#: ../../library/functools.rst:646
599-
msgid ""
600-
"The :meth:`~TopologicalSorter.__bool__` method of this class defers to this "
601-
"function, so instead of::"
602-
msgstr ""
603-
604-
#: ../../library/functools.rst:652
605-
msgid "if possible to simply do::"
606-
msgstr ""
607-
608-
#: ../../library/functools.rst:657 ../../library/functools.rst:680
609-
msgid ""
610-
"Raises :exc:`ValueError` if called without calling "
611-
":meth:`~TopologicalSorter.prepare` previously."
612-
msgstr ""
613-
614-
#: ../../library/functools.rst:662
615-
msgid ""
616-
"Marks a set of nodes returned by :meth:`TopologicalSorter.get_ready` as "
617-
"processed, unblocking any successor of each node in *nodes* for being "
618-
"returned in the future by a call to :meth:`TopologicalSorter.get_ready`."
619-
msgstr ""
620-
621-
#: ../../library/functools.rst:666
622-
msgid ""
623-
"Raises :exc:`ValueError` if any node in *nodes* has already been marked as "
624-
"processed by a previous call to this method or if a node was not added to "
625-
"the graph by using :meth:`TopologicalSorter.add`, if called without calling "
626-
":meth:`~TopologicalSorter.prepare` or if node has not yet been returned by "
627-
":meth:`~TopologicalSorter.get_ready`."
628-
msgstr ""
629-
630-
#: ../../library/functools.rst:674
631-
msgid ""
632-
"Returns a ``tuple`` with all the nodes that are ready. Initially it returns "
633-
"all nodes with no predecessors, and once those are marked as processed by "
634-
"calling :meth:`TopologicalSorter.done`, further calls will return all new "
635-
"nodes that have all their predecessors already processed. Once no more "
636-
"progress can be made, empty tuples are returned."
637-
msgstr ""
638-
639-
#: ../../library/functools.rst:685
640-
msgid ""
641-
"Returns an iterable of nodes in a topological order. Using this method does "
642-
"not require to call :meth:`TopologicalSorter.prepare` or "
643-
":meth:`TopologicalSorter.done`. This method is equivalent to::"
644-
msgstr ""
645-
646-
#: ../../library/functools.rst:696
647-
msgid ""
648-
"The particular order that is returned may depend on the specific order in "
649-
"which the items were inserted in the graph. For example:"
650-
msgstr ""
651-
652-
#: ../../library/functools.rst:713
653-
msgid ""
654-
"This is due to the fact that \"0\" and \"2\" are in the same level in the "
655-
"graph (they would have been returned in the same call to "
656-
":meth:`~TopologicalSorter.get_ready`) and the order between them is "
657-
"determined by the order of insertion."
658-
msgstr ""
659-
660-
#: ../../library/functools.rst:719
661-
msgid "If any cycle is detected, :exc:`CycleError` will be raised."
662-
msgstr ""
663-
664-
#: ../../library/functools.rst:726
665-
msgid ""
666489
"Update a *wrapper* function to look like the *wrapped* function. The "
667490
"optional arguments are tuples to specify which attributes of the original "
668491
"function are assigned directly to the matching attributes on the wrapper "
@@ -680,7 +503,7 @@ msgstr ""
680503
"``__qualname__``, ``__annotations__`` 和 ``__doc__`` 即文档字符串) 以及 "
681504
"``WRAPPER_UPDATES`` (它将更新 wrapper 函数的 ``__dict__`` 即实例字典)。"
682505

683-
#: ../../library/functools.rst:736
506+
#: ../../library/functools.rst:558
684507
msgid ""
685508
"To allow access to the original function for introspection and other "
686509
"purposes (e.g. bypassing a caching decorator such as :func:`lru_cache`), "
@@ -690,7 +513,7 @@ msgstr ""
690513
"为了允许出于内省和其他目的访问原始函数(例如绕过 :func:`lru_cache` 之类的缓存装饰器),此函数会自动为 wrapper "
691514
"添加一个指向被包装函数的 ``__wrapped__`` 属性。"
692515

693-
#: ../../library/functools.rst:741
516+
#: ../../library/functools.rst:563
694517
msgid ""
695518
"The main intended use for this function is in :term:`decorator` functions "
696519
"which wrap the decorated function and return the wrapper. If the wrapper "
@@ -701,7 +524,7 @@ msgstr ""
701524
"此函数的主要目的是在 :term:`decorator` 函数中用来包装被装饰的函数并返回包装器。 "
702525
"如果包装器函数未被更新,则被返回函数的元数据将反映包装器定义而不是原始函数定义,这通常没有什么用处。"
703526

704-
#: ../../library/functools.rst:747
527+
#: ../../library/functools.rst:569
705528
msgid ""
706529
":func:`update_wrapper` may be used with callables other than functions. Any "
707530
"attributes named in *assigned* or *updated* that are missing from the object"
@@ -713,19 +536,19 @@ msgstr ""
713536
"中命名的任何属性如果不存在于被包装对象则会被忽略(即该函数将不会尝试在包装器函数上设置它们)。 如果包装器函数自身缺少在 *updated* "
714537
"中命名的任何属性则仍将引发 :exc:`AttributeError`。"
715538

716-
#: ../../library/functools.rst:753
539+
#: ../../library/functools.rst:575
717540
msgid "Automatic addition of the ``__wrapped__`` attribute."
718541
msgstr "自动添加 ``__wrapped__`` 属性。"
719542

720-
#: ../../library/functools.rst:756
543+
#: ../../library/functools.rst:578
721544
msgid "Copying of the ``__annotations__`` attribute by default."
722545
msgstr "默认拷贝 ``__annotations__`` 属性。"
723546

724-
#: ../../library/functools.rst:759
547+
#: ../../library/functools.rst:581
725548
msgid "Missing attributes no longer trigger an :exc:`AttributeError`."
726549
msgstr "不存在的属性将不再触发 :exc:`AttributeError`。"
727550

728-
#: ../../library/functools.rst:762
551+
#: ../../library/functools.rst:584
729552
msgid ""
730553
"The ``__wrapped__`` attribute now always refers to the wrapped function, "
731554
"even if that function defined a ``__wrapped__`` attribute. (see "
@@ -734,7 +557,7 @@ msgstr ""
734557
"``__wrapped__`` 属性现在总是指向被包装的函数,即使该函数定义了 ``__wrapped__`` 属性。 (参见 "
735558
":issue:`17482`)"
736559

737-
#: ../../library/functools.rst:770
560+
#: ../../library/functools.rst:592
738561
msgid ""
739562
"This is a convenience function for invoking :func:`update_wrapper` as a "
740563
"function decorator when defining a wrapper function. It is equivalent to "
@@ -745,7 +568,7 @@ msgstr ""
745568
"``partial(update_wrapper, wrapped=wrapped, assigned=assigned, "
746569
"updated=updated)``。 例如::"
747570

748-
#: ../../library/functools.rst:796
571+
#: ../../library/functools.rst:618
749572
msgid ""
750573
"Without the use of this decorator factory, the name of the example function "
751574
"would have been ``'wrapper'``, and the docstring of the original "
@@ -754,35 +577,35 @@ msgstr ""
754577
"如果不使用这个装饰器工厂函数,则 example 函数的名称将变为 ``'wrapper'``,并且 :func:`example` "
755578
"原本的文档字符串将会丢失。"
756579

757-
#: ../../library/functools.rst:804
580+
#: ../../library/functools.rst:626
758581
msgid ":class:`partial` Objects"
759582
msgstr ":class:`partial` 对象"
760583

761-
#: ../../library/functools.rst:806
584+
#: ../../library/functools.rst:628
762585
msgid ""
763586
":class:`partial` objects are callable objects created by :func:`partial`. "
764587
"They have three read-only attributes:"
765588
msgstr ":class:`partial` 对象是由 :func:`partial` 创建的可调用对象。 它们具有三个只读属性:"
766589

767-
#: ../../library/functools.rst:812
590+
#: ../../library/functools.rst:634
768591
msgid ""
769592
"A callable object or function. Calls to the :class:`partial` object will be"
770593
" forwarded to :attr:`func` with new arguments and keywords."
771594
msgstr "一个可调用对象或函数。 对 :class:`partial` 对象的调用将被转发给 :attr:`func` 并附带新的参数和关键字。"
772595

773-
#: ../../library/functools.rst:818
596+
#: ../../library/functools.rst:640
774597
msgid ""
775598
"The leftmost positional arguments that will be prepended to the positional "
776599
"arguments provided to a :class:`partial` object call."
777600
msgstr "最左边的位置参数将放置在提供给 :class:`partial` 对象调用的位置参数之前。"
778601

779-
#: ../../library/functools.rst:824
602+
#: ../../library/functools.rst:646
780603
msgid ""
781604
"The keyword arguments that will be supplied when the :class:`partial` object"
782605
" is called."
783606
msgstr "当调用 :class:`partial` 对象时将要提供的关键字参数。"
784607

785-
#: ../../library/functools.rst:827
608+
#: ../../library/functools.rst:649
786609
msgid ""
787610
":class:`partial` objects are like :class:`function` objects in that they are"
788611
" callable, weak referencable, and can have attributes. There are some "
@@ -794,27 +617,3 @@ msgstr ""
794617
":class:`partial` 对象与 :class:`function` 对象的类似之处在于它们都是可调用、可弱引用的对象并可拥有属性。 "
795618
"但两者也存在一些重要的区别。 例如前者不会自动创建 :attr:`~definition.__name__` 和 :attr:`__doc__` 属性。"
796619
" 而且,在类中定义的 :class:`partial` 对象的行为类似于静态方法,并且不会在实例属性查找期间转换为绑定方法。"
797-
798-
#: ../../library/functools.rst:836
799-
msgid "Exceptions"
800-
msgstr "异常"
801-
802-
#: ../../library/functools.rst:837
803-
msgid "The :mod:`functools` module defines the following exception classes:"
804-
msgstr ""
805-
806-
#: ../../library/functools.rst:841
807-
msgid ""
808-
"Subclass of :exc:`ValueError` raised by :meth:`TopologicalSorter.prepare` if"
809-
" cycles exist in the working graph. If multiple cycles exist, only one "
810-
"undefined choice among them will be reported and included in the exception."
811-
msgstr ""
812-
813-
#: ../../library/functools.rst:845
814-
msgid ""
815-
"The detected cycle can be accessed via the second element in the "
816-
":attr:`~CycleError.args` attribute of the exception instance and consists in"
817-
" a list of nodes, such that each node is, in the graph, an immediate "
818-
"predecessor of the next node in the list. In the reported list, the first "
819-
"and the last node will be the same, to make it clear that it is cyclic."
820-
msgstr ""

library/symbol.po

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.9\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2020-05-31 09:25+0000\n"
15+
"POT-Creation-Date: 2020-06-01 03:13+0000\n"
1616
"PO-Revision-Date: 2017-02-16 23:28+0000\n"
1717
"Last-Translator: Freesand Leo <[email protected]>, 2019\n"
1818
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -43,11 +43,17 @@ msgstr ""
4343
":file:`Grammar/Grammar` 文件来获取该语言语法上下文中对这些名称的定义。 这些名称所映射的特定数字值可能会在 Python "
4444
"版本之间更改。"
4545

46-
#: ../../library/symbol.rst:20
46+
#: ../../library/symbol.rst:22
47+
msgid ""
48+
"The symbol module is deprecated and will be removed in future versions of "
49+
"Python."
50+
msgstr ""
51+
52+
#: ../../library/symbol.rst:25
4753
msgid "This module also provides one additional data object:"
4854
msgstr "此模块还提供了一个额外的数据对象:"
4955

50-
#: ../../library/symbol.rst:25
56+
#: ../../library/symbol.rst:30
5157
msgid ""
5258
"Dictionary mapping the numeric values of the constants defined in this "
5359
"module back to name strings, allowing more human-readable representation of "

0 commit comments

Comments
 (0)