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

Skip to content

Commit 69b9e8f

Browse files
committed
[po] auto sync bot
1 parent 9b24fa2 commit 69b9e8f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

reference/datamodel.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,8 @@ msgid ""
17241724
"may already be taken by the code that gets interrupted to execute "
17251725
":meth:`__del__`."
17261726
msgstr ""
1727+
":meth:`__del__` 可在任意代码被执行时启用,包括来自任意线程的代码。如果 :meth:`__del__` "
1728+
"需要接受锁或启用其他阻塞资源,可能会发生死锁,例如该资源已被为执行 :meth:`__del__` 而中断的代码所获取。"
17271729

17281730
#: ../../reference/datamodel.rst:1250
17291731
msgid ""
@@ -1735,6 +1737,9 @@ msgid ""
17351737
"such globals exist, this may help in assuring that imported modules are "
17361738
"still available at the time when the :meth:`__del__` method is called."
17371739
msgstr ""
1740+
":meth:`__del__` 可以在解释器关闭阶段被执行。因此,它需要访问的全局变量(包含其他模块)可能已被删除或设为 ``None``。Python"
1741+
" 会保证先删除模块中名称以单个下划线打头的全局变量再删除其他全局变量;如果已不存在其他对此类全局变量的引用,这有助于确保导入的模块在 "
1742+
":meth:`__del__` 方法被调用时仍然可用。"
17381743

17391744
#: ../../reference/datamodel.rst:1265
17401745
msgid ""

0 commit comments

Comments
 (0)