|
1 | 1 | # SOME DESCRIPTIVE TITLE.
|
2 |
| -# Copyright (C) 2001-2022, Python Software Foundation |
| 2 | +# Copyright (C) 2001-2024, Python Software Foundation |
3 | 3 | # This file is distributed under the same license as the Python package.
|
4 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 | 5 | #
|
6 | 6 | # Translators:
|
7 |
| -# ww song <sww4718168@gmail.com>, 2018 |
8 | 7 | # TX Lee <litmxs@gmail.com>, 2019
|
9 | 8 | # walkinrain <walkinrain2008@outlook.com>, 2019
|
10 | 9 | # 叶浚安 <ye.pandaaaa906@gmail.com>, 2019
|
11 | 10 | # ppcfish <ppcfish@gmail.com>, 2019
|
12 | 11 | # kevin wong <huagang517@126.com>, 2020
|
13 |
| -# Freesand Leo <yuqinju@163.com>, 2022 |
| 12 | +# Rafael Fontenelle <rffontenelle@gmail.com>, 2023 |
| 13 | +# Freesand Leo <yuqinju@163.com>, 2024 |
14 | 14 | #
|
15 | 15 | #, fuzzy
|
16 | 16 | msgid ""
|
17 | 17 | msgstr ""
|
18 | 18 | "Project-Id-Version: Python 3.9\n"
|
19 | 19 | "Report-Msgid-Bugs-To: \n"
|
20 |
| -"POT-Creation-Date: 2022-11-04 14:34+0000\n" |
| 20 | +"POT-Creation-Date: 2024-05-11 20:32+0000\n" |
21 | 21 | "PO-Revision-Date: 2017-02-16 23:30+0000\n"
|
22 |
| -"Last-Translator: Freesand Leo <yuqinju@163.com>, 2022\n" |
23 |
| -"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n" |
| 22 | +"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n" |
| 23 | +"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n" |
24 | 24 | "MIME-Version: 1.0\n"
|
25 | 25 | "Content-Type: text/plain; charset=UTF-8\n"
|
26 | 26 | "Content-Transfer-Encoding: 8bit\n"
|
@@ -145,7 +145,8 @@ msgid ""
|
145 | 145 | "Storing *thread* using a custom hook can resurrect it if it is set to an "
|
146 | 146 | "object which is being finalized. Avoid storing *thread* after the custom "
|
147 | 147 | "hook completes to avoid resurrecting objects."
|
148 |
| -msgstr "使用定制钩子存放 *thread* 可能会在它设为被终结对象时将其重生。 请避免在定制钩子完成后存放 *thread* 以避免对象的重生。" |
| 148 | +msgstr "" |
| 149 | +"如果一个对象正在被销毁,那么使用自定义的钩子储存 *thread* 可能会将其复活。请在自定义钩子生效后避免储存 *thread*,以避免对象的复活。" |
149 | 150 |
|
150 | 151 | #: ../../library/threading.rst:83
|
151 | 152 | msgid ":func:`sys.excepthook` handles uncaught exceptions."
|
@@ -233,7 +234,7 @@ msgid ""
|
233 | 234 | "stack size is the suggested approach in the absence of more specific "
|
234 | 235 | "information)."
|
235 | 236 | msgstr ""
|
236 |
| -"返回创建线程时用的堆栈大小。可选参数 *size* " |
| 237 | +"返回创建线程时使用的堆栈大小。可选参数 *size* " |
237 | 238 | "指定之后新建的线程的堆栈大小,而且一定要是0(根据平台或者默认配置)或者最小是32,768(32KiB)的一个正整数。如果 *size* "
|
238 | 239 | "没有指定,默认是0。如果不支持改变线程堆栈大小,会抛出 :exc:`RuntimeError` 错误。如果指定的堆栈大小不合法,会抛出 "
|
239 | 240 | ":exc:`ValueError` "
|
@@ -323,7 +324,7 @@ msgid ""
|
323 | 324 | "override the :meth:`~Thread.__init__` and :meth:`~Thread.run` methods of "
|
324 | 325 | "this class."
|
325 | 326 | msgstr ""
|
326 |
| -" :class:`Thread` 类代表在独立控制线程运行的活动。有两种方式指定活动:传递一个可调用对象给构造函数或者在子类重载 " |
| 327 | +":class:`Thread` 类代表在独立控制线程运行的活动。有两种方式指定活动:传递一个可调用对象给构造函数或者在子类重载 " |
327 | 328 | ":meth:`~Thread.run` 方法。其它方法不应该在子类被(除了构造函数)重载。换句话说,*只能* 重载这个类的 "
|
328 | 329 | ":meth:`~Thread.__init__` 和 :meth:`~Thread.run` 方法。"
|
329 | 330 |
|
@@ -516,7 +517,7 @@ msgid ""
|
516 | 517 | "whether a timeout happened -- if the thread is still alive, the "
|
517 | 518 | ":meth:`~Thread.join` call timed out."
|
518 | 519 | msgstr ""
|
519 |
| -"当 *timeout* 参数存在而且不是 ``None`` 时,它应该是一个用于指定操作超时的以秒为单位的浮点数(或者分数)。因为 " |
| 520 | +"当 *timeout* 参数存在而且不是 ``None`` 时,它应该是一个用于指定操作超时的以秒为单位的浮点数或者分数。因为 " |
520 | 521 | ":meth:`~Thread.join` 总是返回 ``None`` ,所以你一定要在 :meth:`~Thread.join` 后调用 "
|
521 | 522 | ":meth:`~Thread.is_alive` 才能判断是否发生超时 -- 如果线程仍然存活,则 :meth:`~Thread.join` 超时。"
|
522 | 523 |
|
@@ -755,7 +756,7 @@ msgstr "当锁被锁定,将它重置为未锁定,并返回。如果其他线
|
755 | 756 |
|
756 | 757 | #: ../../library/threading.rst:489
|
757 | 758 | msgid "When invoked on an unlocked lock, a :exc:`RuntimeError` is raised."
|
758 |
| -msgstr "在未锁定的锁调用时,会引发 :exc:`RuntimeError` 异常。" |
| 759 | +msgstr "当在未锁定的锁上发起调用时,会引发 :exc:`RuntimeError`。" |
759 | 760 |
|
760 | 761 | #: ../../library/threading.rst:491 ../../library/threading.rst:572
|
761 | 762 | msgid "There is no return value."
|
@@ -1053,7 +1054,7 @@ msgstr "返回 ``True`` ,除非提供的 *timeout* 过期,这种情况下返
|
1053 | 1054 |
|
1054 | 1055 | #: ../../library/threading.rst:693 ../../library/threading.rst:908
|
1055 | 1056 | msgid "Previously, the method always returned ``None``."
|
1056 |
| -msgstr "很明显,方法总是返回 ``None``。" |
| 1057 | +msgstr "在此之前,方法总是返回 ``None``。" |
1057 | 1058 |
|
1058 | 1059 | #: ../../library/threading.rst:698
|
1059 | 1060 | msgid ""
|
@@ -1187,13 +1188,13 @@ msgstr "获取一个信号量。"
|
1187 | 1188 |
|
1188 | 1189 | #: ../../library/threading.rst:783
|
1189 | 1190 | msgid "When invoked without arguments:"
|
1190 |
| -msgstr "在不带参数的情况下调用时: " |
| 1191 | +msgstr "在不带参数的情况下调用时:" |
1191 | 1192 |
|
1192 | 1193 | #: ../../library/threading.rst:785
|
1193 | 1194 | msgid ""
|
1194 | 1195 | "If the internal counter is larger than zero on entry, decrement it by one "
|
1195 | 1196 | "and return ``True`` immediately."
|
1196 |
| -msgstr "如果在进入时内部计数器的值大于零,则将其减一并立即返回 ``True``." |
| 1197 | +msgstr "如果在进入时内部计数器的值大于零,则将其减一并立即返回 ``True``。" |
1197 | 1198 |
|
1198 | 1199 | #: ../../library/threading.rst:787
|
1199 | 1200 | msgid ""
|
@@ -1377,7 +1378,7 @@ msgstr ""
|
1377 | 1378 |
|
1378 | 1379 | #: ../../library/threading.rst:927
|
1379 | 1380 | msgid "For example::"
|
1380 |
| -msgstr "例如::" |
| 1381 | +msgstr "例如:" |
1381 | 1382 |
|
1382 | 1383 | #: ../../library/threading.rst:938
|
1383 | 1384 | msgid ""
|
|
0 commit comments