@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.7\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2019-01-01 10:14 +0900\n "
15+ "POT-Creation-Date : 2019-05-29 11:32 +0900\n "
1616"PO-Revision-Date : 2017-02-16 23:25+0000\n "
1717"
Last-Translator :
Meng Du <[email protected] >, 2019\n "
1818"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -41,41 +41,36 @@ msgid ""
4141"The :class:`scheduler` class defines a generic interface to scheduling "
4242"events. It needs two functions to actually deal with the \" outside world\" "
4343"--- *timefunc* should be callable without arguments, and return a number "
44- "(the \" time\" , in any units whatsoever). If time.monotonic is not available,"
45- " the *timefunc* default is time.time instead. The *delayfunc* function "
46- "should be callable with one argument, compatible with the output of "
47- "*timefunc*, and should delay that many time units. *delayfunc* will also be "
48- "called with the argument ``0`` after each event is run to allow other "
49- "threads an opportunity to run in multi-threaded applications."
44+ "(the \" time\" , in any units whatsoever). The *delayfunc* function should be"
45+ " callable with one argument, compatible with the output of *timefunc*, and "
46+ "should delay that many time units. *delayfunc* will also be called with the "
47+ "argument ``0`` after each event is run to allow other threads an opportunity"
48+ " to run in multi-threaded applications."
5049msgstr ""
51- ":class:`scheduler` 类定义了一个调度事件的通用接口。 它需要两个函数来实际处理“外部世界” —— *timefunc* "
52- "应该可以在没有参数的情况下调用,并返回一个数字(“时间”,以任何单位表示)。 如果 time.monotonic 不可用,则 *timefunc* "
53- "默认为 time.time。 *delayfunc* 函数应该用一个参数可调用,与 *timefunc* 的输出兼容,并且应该延迟那么多时间单位。 "
54- "每个事件运行后,还会使用参数 ``0`` 调用 *delayfunc*,以允许其他线程有机会在多线程应用程序中运行。"
5550
56- #: ../../library/sched.rst:30
51+ #: ../../library/sched.rst:29
5752msgid "*timefunc* and *delayfunc* parameters are optional."
5853msgstr "*timefunc* 和 *delayfunc* 参数是可选的。"
5954
60- #: ../../library/sched.rst:33
55+ #: ../../library/sched.rst:32
6156msgid ""
6257":class:`scheduler` class can be safely used in multi-threaded environments."
6358msgstr ":class:`scheduler` 类可以安全的在多线程环境中使用。"
6459
65- #: ../../library/sched.rst:37
60+ #: ../../library/sched.rst:36
6661msgid "Example::"
6762msgstr "示例::"
6863
69- #: ../../library/sched.rst:62
64+ #: ../../library/sched.rst:61
7065msgid "Scheduler Objects"
7166msgstr "调度器对象"
7267
73- #: ../../library/sched.rst:64
68+ #: ../../library/sched.rst:63
7469msgid ""
7570":class:`scheduler` instances have the following methods and attributes:"
7671msgstr ":class:`scheduler` 实例拥有以下方法和属性:"
7772
78- #: ../../library/sched.rst:69
73+ #: ../../library/sched.rst:68
7974msgid ""
8075"Schedule a new event. The *time* argument should be a numeric type "
8176"compatible with the return value of the *timefunc* function passed to the "
@@ -85,7 +80,7 @@ msgstr ""
8580"安排一个新事件。 *time* 参数应该有一个数字类型兼容的返回值,与传递给构造函数的 *timefunc* 函数的返回值兼容。 计划在相同 "
8681"*time* 的事件将按其 *priority* 的顺序执行。 数字越小表示优先级越高。"
8782
88- #: ../../library/sched.rst:74
83+ #: ../../library/sched.rst:73
8984msgid ""
9085"Executing the event means executing ``action(*argument, **kwargs)``. "
9186"*argument* is a sequence holding the positional arguments for *action*. "
@@ -94,38 +89,38 @@ msgstr ""
9489"执行事件意为执行 ``action(*argument, **kwargs)``。 *argument* 是包含有 *action* 的位置参数的序列。"
9590" *kwargs* 是包含 *action* 的关键字参数的字典。"
9691
97- #: ../../library/sched.rst:78
92+ #: ../../library/sched.rst:77
9893msgid ""
9994"Return value is an event which may be used for later cancellation of the "
10095"event (see :meth:`cancel`)."
10196msgstr "返回值是一个事件,可用于以后取消事件( 参见 :meth:`cancel` )。"
10297
103- #: ../../library/sched.rst:81 ../../library/sched.rst:94
98+ #: ../../library/sched.rst:80 ../../library/sched.rst:93
10499msgid "*argument* parameter is optional."
105100msgstr "*argument* 参数是可选的。"
106101
107- #: ../../library/sched.rst:84 ../../library/sched.rst:97
102+ #: ../../library/sched.rst:83 ../../library/sched.rst:96
108103msgid "*kwargs* parameter was added."
109104msgstr "添加了 *kwargs* 形参。"
110105
111- #: ../../library/sched.rst:90
106+ #: ../../library/sched.rst:89
112107msgid ""
113108"Schedule an event for *delay* more time units. Other than the relative time,"
114109" the other arguments, the effect and the return value are the same as those "
115110"for :meth:`enterabs`."
116111msgstr "安排延后 *delay* 时间单位的事件。 除了相对时间,其他参数、效果和返回值与 :meth:`enterabs` 的相同。"
117112
118- #: ../../library/sched.rst:102
113+ #: ../../library/sched.rst:101
119114msgid ""
120115"Remove the event from the queue. If *event* is not an event currently in the"
121116" queue, this method will raise a :exc:`ValueError`."
122117msgstr "从队列中删除事件。 如果 *event* 不是当前队列中的事件,则此方法将引发 :exc:`ValueError`。"
123118
124- #: ../../library/sched.rst:108
119+ #: ../../library/sched.rst:107
125120msgid "Return true if the event queue is empty."
126121msgstr "如果事件队列为空,则返回真值。"
127122
128- #: ../../library/sched.rst:113
123+ #: ../../library/sched.rst:112
129124msgid ""
130125"Run all scheduled events. This method will wait (using the "
131126":func:`delayfunc` function passed to the constructor) for the next event, "
@@ -134,14 +129,14 @@ msgstr ""
134129"运行所有预定事件。 此方法将等待(使用传递给构造函数的 :func:`delayfunc` "
135130"函数)进行下一个事件,然后执行它,依此类推,直到没有更多的计划事件。"
136131
137- #: ../../library/sched.rst:117
132+ #: ../../library/sched.rst:116
138133msgid ""
139134"If *blocking* is false executes the scheduled events due to expire soonest "
140135"(if any) and then return the deadline of the next scheduled call in the "
141136"scheduler (if any)."
142137msgstr "如果 *blocking* 为false,则执行由于最快到期(如果有)的预定事件,然后在调度程序中返回下一个预定调用的截止时间(如果有)。"
143138
144- #: ../../library/sched.rst:121
139+ #: ../../library/sched.rst:120
145140msgid ""
146141"Either *action* or *delayfunc* can raise an exception. In either case, the "
147142"scheduler will maintain a consistent state and propagate the exception. If "
@@ -151,19 +146,19 @@ msgstr ""
151146"*action* 或 *delayfunc* 都可以引发异常。 在任何一种情况下,调度程序都将保持一致状态并传播异常。 如果 *action* "
152147"引发异常,则在将来调用 :meth:`run` 时不会尝试该事件。"
153148
154- #: ../../library/sched.rst:126
149+ #: ../../library/sched.rst:125
155150msgid ""
156151"If a sequence of events takes longer to run than the time available before "
157152"the next event, the scheduler will simply fall behind. No events will be "
158153"dropped; the calling code is responsible for canceling events which are no "
159154"longer pertinent."
160155msgstr "如果一系列事件的运行时间比下一个事件之前的可用时间长,那么调度程序将完全落后。 不会发生任何事件;调用代码负责取消不再相关的事件。"
161156
162- #: ../../library/sched.rst:131
157+ #: ../../library/sched.rst:130
163158msgid "*blocking* parameter was added."
164159msgstr "添加了 *blocking* 形参。"
165160
166- #: ../../library/sched.rst:136
161+ #: ../../library/sched.rst:135
167162msgid ""
168163"Read-only attribute returning a list of upcoming events in the order they "
169164"will be run. Each event is shown as a :term:`named tuple` with the "
0 commit comments