Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita712e4b

Browse files
Apply suggestions from code review
Co-authored-by: Liang-Bo Wang <me@liang2.tw>
1 parent372e87a commita712e4b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎library/tempfile.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ msgid ""
7676
msgstr""
7777
"回傳一個可當作臨時儲存區域的 :term:`file-like object`。建立該檔案使用了與 :"
7878
"func:`mkstemp` 相同的安全規則。它將在關閉(包括當物件被垃圾回收 (garbage "
79-
"collect)時所關閉)後立即銷毀。在 Unix 下,該檔案在目錄中的條目可能根本不被建"
79+
"collect)時的隱式關閉)後立即銷毀。在 Unix 下,該檔案所在的目錄可能根本不被建"
8080
"立、或者在建立檔案後立即就被刪除,其他平臺不支援此功能;你的程式不應依賴使用"
8181
"此功能建立的臨時檔案名稱,因為它在檔案系統中的名稱有可能是不可見的。"
8282

@@ -145,7 +145,7 @@ msgstr ""
145145

146146
#:../../library/tempfile.rst:72
147147
msgid"The :py:data:`os.O_TMPFILE` flag is now used if available."
148-
msgstr"如果可用,使用的是 :py:data:`os.O_TMPFILE` 旗標。"
148+
msgstr"如果可用,自此開始使用 :py:data:`os.O_TMPFILE` 旗標。"
149149

150150
#:../../library/tempfile.rst:74../../library/tempfile.rst:95
151151
#:../../library/tempfile.rst:120
@@ -182,7 +182,7 @@ msgid ""
182182
msgstr""
183183
"此類別執行的操作與 :func:`TemporaryFile` 完全相同,但會將資料排存 (spool) 於"
184184
"在記憶體中,直到檔案大小超過 *max_size*,或檔案的 :func:`fileno` 方法被呼叫為"
185-
"止,此時資料會被寫入磁碟,並且寫入操作與 :func:`TemporaryFile` 相同。"
185+
"止,此時資料會被寫入磁碟,並且之後的操作與 :func:`TemporaryFile` 相同。"
186186

187187
#:../../library/tempfile.rst:107
188188
msgid""
@@ -244,7 +244,7 @@ msgid ""
244244
"shutdown)."
245245
msgstr""
246246
"此目錄可透過呼叫 :func:`cleanup` 方法來顯式地清理。如果 "
247-
"*ignore_cleanup_errors* 為 true,則若在顯式或隱式清理期間出現的未處理例外(例"
247+
"*ignore_cleanup_errors* 為 true,則在顯式或隱式清理期間出現的未處理例外(例"
248248
"如在 Windows 上移除開啟的檔案而引發的 :exc:`PermissionError`)將被忽略,並且"
249249
"剩餘的可移除條目會「儘可能」地被刪除。在其他情況下,錯誤將在任何情境清理(:"
250250
"func:`cleanup` 呼叫、退出情境管理器、物件被作為垃圾回收或直譯器關閉等)發生時"
@@ -348,7 +348,7 @@ msgid ""
348348
"that file, in that order."
349349
msgstr""
350350
":func:`mkstemp` 回傳一個 tuple,tuple 中,第一個元素是一個作業系統層級 (OS-"
351-
"level)控制程式,指向一個開啟的檔案(如同 :func:`os.open` 的回傳值),第二元"
351+
"level)控制代碼,指向一個開啟的檔案(如同 :func:`os.open` 的回傳值),第二元"
352352
"素是該檔案的絕對路徑。"
353353

354354
#:../../library/tempfile.rst:199../../library/tempfile.rst:225

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp