77msgstr ""
88"Project-Id-Version : Python 3.14\n "
99"Report-Msgid-Bugs-To : \n "
10- "POT-Creation-Date : 2025-09-08 15:25+0800 \n "
10+ "POT-Creation-Date : 2025-12-28 00:16+0000 \n "
1111"PO-Revision-Date : 2025-07-07 23:50+0800\n "
1212"
Last-Translator :
Weilin Du <[email protected] >\n "
1313"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -31,24 +31,23 @@ msgstr "**原始碼:**\\ :source:`Lib/linecache.py`"
3131msgid ""
3232"The :mod:`linecache` module allows one to get any line from a Python source "
3333"file, while attempting to optimize internally, using a cache, the common "
34- "case where many lines are read from a single file. This is used by "
35- "the :mod: `traceback` module to retrieve source lines for inclusion in the "
36- "formatted traceback."
34+ "case where many lines are read from a single file. This is used by the :mod: "
35+ "`traceback` module to retrieve source lines for inclusion in the formatted "
36+ "traceback."
3737msgstr ""
3838":mod:`linecache` 模組允許從 Python 原始碼檔案中取得任何一行。當嘗試在程式內部"
39- "進行最佳化,會使用快取,這是從單一檔案讀取許多行的常見情況。 這"
40- "被 :mod:`traceback` 模組用來擷取來自原始碼檔案的行,以包含在格式化的 "
41- "traceback 中。"
39+ "進行最佳化,會使用快取,這是從單一檔案讀取許多行的常見情況。 這被 :mod:"
40+ "`traceback` 模組用來擷取來自原始碼檔案的行,以包含在格式化的 traceback 中。"
4241
4342#: ../../library/linecache.rst:18
4443msgid ""
4544"The :func:`tokenize.open` function is used to open files. This function "
4645"uses :func:`tokenize.detect_encoding` to get the encoding of the file; in "
4746"the absence of an encoding token, the file encoding defaults to UTF-8."
4847msgstr ""
49- ":func:`tokenize.open` 函式用來開啟檔案。這個函式使 "
50- "用 :func:`tokenize. detect_encoding` 來取得檔案的編碼;在沒有編碼標記的情況 "
51- "下,檔案編碼預設為 UTF-8。"
48+ ":func:`tokenize.open` 函式用來開啟檔案。這個函式使用 :func:`tokenize. "
49+ "detect_encoding` 來取得檔案的編碼;在沒有編碼標記的情況下,檔案編碼預設為 "
50+ "UTF-8。"
5251
5352#: ../../library/linecache.rst:22
5453msgid "The :mod:`linecache` module defines the following functions:"
@@ -66,21 +65,21 @@ msgstr ""
6665#: ../../library/linecache.rst:33
6766msgid ""
6867"If *filename* indicates a frozen module (starting with ``'<frozen '``), the "
69- "function will attepmt to get the real file name from "
68+ "function will attempt to get the real file name from "
7069"``module_globals['__file__']`` if *module_globals* is not ``None``."
7170msgstr ""
7271
7372#: ../../library/linecache.rst:37
7473msgid ""
75- "If a file named *filename* is not found, the function first checks for "
76- "a : pep:`302` ``__loader__`` in *module_globals*. If there is such a loader "
77- "and it defines a ``get_source`` method, then that determines the source "
78- "lines (if ``get_source()`` returns ``None``, then ``''`` is returned). "
79- "Finally, if *filename* is a relative filename, it is looked up relative to "
80- "the entries in the module search path, ``sys.path``."
74+ "If a file named *filename* is not found, the function first checks for a : "
75+ "pep:`302` ``__loader__`` in *module_globals*. If there is such a loader and "
76+ "it defines a ``get_source`` method, then that determines the source lines "
77+ "(if ``get_source()`` returns ``None``, then ``''`` is returned). Finally, if "
78+ "*filename* is a relative filename, it is looked up relative to the entries "
79+ "in the module search path, ``sys.path``."
8180msgstr ""
82- "如果找不到名為 *filename* 的檔案,函式會先檢查 *module_globals* 中是否 "
83- "有 : pep:`302` `__loader__` 載入器。如果有這樣一個載入器,而且它定義了一個 "
81+ "如果找不到名為 *filename* 的檔案,函式會先檢查 *module_globals* 中是否有 : "
82+ "pep:`302` `__loader__` 載入器。如果有這樣一個載入器,而且它定義了一個 "
8483"``get_source`` 方法,這之後它就會決定原始碼行(如果 ``get_source()`` 回傳 "
8584"``None``,那麼就會回傳 ``''``)。最後,如果 *filename* 是相對的檔案名稱,則會"
8685"相對於模組搜尋路徑 ``sys.path`` 中的項目進行搜尋。"
0 commit comments