File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 89.79 %" , "updated_at" : " 2023-08-26T08:57:44Z " }
1+ {"translation" : " 89.80 %" , "updated_at" : " 2023-08-26T09:56:34Z " }
Original file line number Diff line number Diff 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!"
445445msgstr ""
446+ "替换其他对象的操作可能会在其他对象的引用计数变为零时发起调用这些对象的 :meth:`~object.__del__` 方法,这可能会产生一些影响。 "
447+ "对字典和列表进行大量更新尤其如此。 如有疑问,请使用互斥锁!"
446448
447449#: ../../faq/library.rst:406
448450msgid "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."
846848msgstr ""
849+ "要防止 TCP 连接发生阻塞,你可以将 socket 设为非阻塞模式。 这样当你执行 :meth:`~socket.socket.connect` "
850+ "时,你将要么立即完成连接(不大可能)要么得到一个包含错误编号如 ``.errno`` 的异常。 ``errno.EINPROGRESS`` "
851+ "表示连接正在进行中,但尚未完成。 不同的操作系统将返回不同的值,所以你需要检查一下你的系统会返回什么值。"
847852
848853#: ../../faq/library.rst:775
849854msgid ""
@@ -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."
855860msgstr ""
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
858867msgid ""
You can’t perform that action at this time.
0 commit comments