File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -309,6 +309,12 @@ msgid ""
309309"None. It will be used to launch the workers. If *mp_context* is ``None`` or "
310310"not given, the default multiprocessing context is used."
311311msgstr ""
312+ "异步地执行调用的 :class:`Executor` 子类使用最多具有 *max_workers* 个进程的进程池。 如果 *max_workers* "
313+ "为 ``None`` 或未给出,它将默认为机器的处理器个数。 如果 *max_workers* 小于等于 ``0``,则将引发 "
314+ ":exc:`ValueError`。 在 Windows 上,*max_workers* 必须小于等于 ``61``,否则将引发 "
315+ ":exc:`ValueError`。 如果 *max_workers* 为 ``None``,则所选择的默认值最多为 "
316+ "``61``,即使存在更多的处理器。 *mp_context* 可以是一个多进程上下文或是 None。 它将被用来启动工作进程。 如果 "
317+ "*mp_context* 为 ``None`` 或未给出,则将使用默认的多进程上下文。"
312318
313319#: ../../library/concurrent.futures.rst:249
314320msgid ""
@@ -318,6 +324,9 @@ msgid ""
318324" jobs will raise a :exc:`~concurrent.futures.process.BrokenProcessPool`, as "
319325"well as any attempt to submit more jobs to the pool."
320326msgstr ""
327+ "*initializer* 是一个可选的可调用对象,它会在每个工作进程启动时被调用;*initargs* 是传给 initializer 的参数元组。 "
328+ "如果 *initializer* 引发了异常,则所有当前在等待的任务以及任何向进程池提交更多任务的尝试都将引发 "
329+ ":exc:`~concurrent.futures.process.BrokenProcessPool`。"
321330
322331#: ../../library/concurrent.futures.rst:255
323332msgid ""
Original file line number Diff line number Diff line change @@ -1088,14 +1088,16 @@ msgstr "在 Python 2 代码中 :attr:`_order_` 属性是必须的,因为定义
10881088
10891089#: ../../library/enum.rst:1126
10901090msgid "_Private__names"
1091- msgstr ""
1091+ msgstr "_Private__names "
10921092
10931093#: ../../library/enum.rst:1128
10941094msgid ""
10951095"Private names will be normal attributes in Python 3.10 instead of either an "
10961096"error or a member (depending on if the name ends with an underscore). Using "
10971097"these names in 3.9 will issue a :exc:`DeprecationWarning`."
10981098msgstr ""
1099+ "私有名称在 Python 3.10 中将成为普通属性而不再是错误或成员(具体取决于该名称是否以一个下划线结束)。 在 3.9 中使用这种名称将引发 "
1100+ ":exc:`DeprecationWarning`。"
10991101
11001102#: ../../library/enum.rst:1134
11011103msgid "``Enum`` member type"
Original file line number Diff line number Diff line change @@ -354,13 +354,16 @@ msgid ""
354354"``f.close()`` to close the file and immediately free up any system resources"
355355" used by it."
356356msgstr ""
357+ "如果你没有使用 :keyword:`with` 关键字,则你应当调用 ``f.close()`` 来关闭文件并立即释放它所使用的任何系统资源。"
357358
358359#: ../../tutorial/inputoutput.rst:335
359360msgid ""
360361"Calling ``f.write()`` without using the :keyword:`!with` keyword or calling "
361362"``f.close()`` **might** result in the arguments of ``f.write()`` not being "
362363"completely written to the disk, even if the program exits successfully."
363364msgstr ""
365+ "调用 ``f.write()`` 时未使用 :keyword:`!with` 关键字或未调用 ``f.close()`` **可能** 导致 "
366+ "``f.write()`` 的参数没有完全写入到磁盘,即使程序是正常退出的。"
364367
365368#: ../../tutorial/inputoutput.rst:343
366369msgid ""
You can’t perform that action at this time.
0 commit comments