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

Skip to content

Commit 4659b90

Browse files
[po] auto sync
1 parent 32f4890 commit 4659b90

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "89.79%", "updated_at": "2023-08-26T08:57:44Z"}
1+
{"translation": "89.80%", "updated_at": "2023-08-26T09:56:34Z"}

faq/library.po

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,8 @@ msgid ""
443443
"that can affect things. This is especially true for the mass updates to "
444444
"dictionaries and lists. When in doubt, use a mutex!"
445445
msgstr ""
446+
"替换其他对象的操作可能会在其他对象的引用计数变为零时发起调用这些对象的 :meth:`~object.__del__` 方法,这可能会产生一些影响。 "
447+
"对字典和列表进行大量更新尤其如此。 如有疑问,请使用互斥锁!"
446448

447449
#: ../../faq/library.rst:406
448450
msgid "Can't we get rid of the Global Interpreter Lock?"
@@ -844,6 +846,9 @@ msgid ""
844846
"return different values, so you're going to have to check what's returned on"
845847
" your system."
846848
msgstr ""
849+
"要防止 TCP 连接发生阻塞,你可以将 socket 设为非阻塞模式。 这样当你执行 :meth:`~socket.socket.connect` "
850+
"时,你将要么立即完成连接(不大可能)要么得到一个包含错误编号如 ``.errno`` 的异常。 ``errno.EINPROGRESS`` "
851+
"表示连接正在进行中,但尚未完成。 不同的操作系统将返回不同的值,所以你需要检查一下你的系统会返回什么值。"
847852

848853
#: ../../faq/library.rst:775
849854
msgid ""
@@ -853,6 +858,10 @@ msgid ""
853858
"indicate that you're connected -- or you can pass this socket to "
854859
":meth:`select.select` to check if it's writable."
855860
msgstr ""
861+
"你可以使用 :meth:`~socket.socket.connect_ex` 方法来避免创建异常。 它将只返回 errno 值。 "
862+
"要进行轮询,你可以稍后再次调用 :meth:`~socket.socket.connect_ex` -- ``0`` 或 "
863+
"``errno.EISCONN`` 表示已经连接 -- 或者你也可以将此 socket 传给 :meth:`select.select` "
864+
"来检查它只否可写。"
856865

857866
#: ../../faq/library.rst:783
858867
msgid ""

0 commit comments

Comments
 (0)