Skip to content

Commit e67d201

Browse files
committed
Translate faq/design.html#why-isn-t-all-memory-freed-when-cpython-exits
1 parent 64f7119 commit e67d201

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

faq/design.po

+7-1
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ msgstr ""
667667

668668
#: ../../faq/design.rst:386
669669
msgid "Why isn't all memory freed when CPython exits?"
670-
msgstr "當CPython結束時,為何所有的記憶體不會被釋放?"
670+
msgstr "當 CPython 結束時,為何所有的記憶體不會被釋放?"
671671

672672
#: ../../faq/design.rst:388
673673
msgid ""
@@ -678,12 +678,18 @@ msgid ""
678678
"about these). Python is, however, aggressive about cleaning up memory on "
679679
"exit and does try to destroy every single object."
680680
msgstr ""
681+
"當離開 Python 時,從 Python 模組的全域命名空間來的物件並非總是會被釋放。在有"
682+
"循環引用的時候,這可能會發生。有些記憶體是被 C 函式庫取用的,他們不可能被釋放"
683+
"(例如:像是 Purify 之類的工具會抱怨)。然而,Python 在關閉的時候會積極清理記"
684+
"憶體並嘗試刪除每個物件。"
681685

682686
#: ../../faq/design.rst:395
683687
msgid ""
684688
"If you want to force Python to delete certain things on deallocation use "
685689
"the :mod:`atexit` module to run a function that will force those deletions."
686690
msgstr ""
691+
"如果你想要強迫 Python 在釋放記憶體時刪除特定的東西,你可以用 :mod:`atexit` 模"
692+
"組來執行會強制刪除的函式。"
687693

688694
#: ../../faq/design.rst:400
689695
msgid "Why are there separate tuple and list data types?"

0 commit comments

Comments
 (0)