Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 45 additions & 43 deletions c-api/frame.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-11 00:15+0000\n"
"POT-Creation-Date: 2026-02-28 00:16+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -76,81 +76,83 @@ msgid "Get the *frame* next outer frame."
msgstr ""

#: ../../c-api/frame.rst:51
#, fuzzy
msgid ""
"Return a :term:`strong reference`, or ``NULL`` if *frame* has no outer frame."
msgstr ""
"Return a :term:`strong reference`, or ``NULL`` if *frame* has no outer "
"frame. This raises no exceptions."
msgstr "回傳 :term:`strong reference` 或 ``NULL``。"

#: ../../c-api/frame.rst:59
#: ../../c-api/frame.rst:60
msgid "Get the *frame*'s :attr:`~frame.f_builtins` attribute."
msgstr "取得 *frame* 的 :attr:`~frame.f_builtins` 屬性。"

#: ../../c-api/frame.rst:61 ../../c-api/frame.rst:92
#: ../../c-api/frame.rst:62 ../../c-api/frame.rst:93
msgid "Return a :term:`strong reference`. The result cannot be ``NULL``."
msgstr "回傳 :term:`strong reference`。結果不能為 ``NULL``。"

#: ../../c-api/frame.rst:68
#: ../../c-api/frame.rst:69
msgid "Get the *frame* code."
msgstr ""

#: ../../c-api/frame.rst:70 ../../c-api/frame.rst:136
#: ../../c-api/frame.rst:71 ../../c-api/frame.rst:137
msgid "Return a :term:`strong reference`."
msgstr "回傳 :term:`strong reference`。"

#: ../../c-api/frame.rst:72
#: ../../c-api/frame.rst:73
msgid "The result (frame code) cannot be ``NULL``."
msgstr ""

#: ../../c-api/frame.rst:79
#: ../../c-api/frame.rst:80
msgid ""
"Get the generator, coroutine, or async generator that owns this frame, or "
"``NULL`` if this frame is not owned by a generator. Does not raise an "
"exception, even if the return value is ``NULL``."
msgstr ""

#: ../../c-api/frame.rst:83
#: ../../c-api/frame.rst:84
msgid "Return a :term:`strong reference`, or ``NULL``."
msgstr "回傳 :term:`strong reference` 或 ``NULL``。"

#: ../../c-api/frame.rst:90
#: ../../c-api/frame.rst:91
msgid "Get the *frame*'s :attr:`~frame.f_globals` attribute."
msgstr "取得 *frame* 的 :attr:`~frame.f_globals` 屬性。"

#: ../../c-api/frame.rst:99
#: ../../c-api/frame.rst:100
msgid "Get the *frame*'s :attr:`~frame.f_lasti` attribute."
msgstr "取得 *frame* 的 :attr:`~frame.f_lasti` 屬性。"

#: ../../c-api/frame.rst:101
#: ../../c-api/frame.rst:102
msgid "Returns -1 if ``frame.f_lasti`` is ``None``."
msgstr "如果 ``frame.f_lasti`` 是 ``None`` 則回傳 -1。"

#: ../../c-api/frame.rst:108
#: ../../c-api/frame.rst:109
msgid "Get the variable *name* of *frame*."
msgstr "取得 *frame* 的變數 *name*。"

#: ../../c-api/frame.rst:110
#: ../../c-api/frame.rst:111
msgid "Return a :term:`strong reference` to the variable value on success."
msgstr "在成功時回傳變數值的 :term:`strong reference`。"

#: ../../c-api/frame.rst:111
#: ../../c-api/frame.rst:112
msgid ""
"Raise :exc:`NameError` and return ``NULL`` if the variable does not exist."
msgstr "如果變數不存在,則引發 :exc:`NameError` 並回傳 ``NULL``。"

#: ../../c-api/frame.rst:112
#: ../../c-api/frame.rst:113
msgid "Raise an exception and return ``NULL`` on error."
msgstr "在錯誤時引發例外並回傳 ``NULL``。"

#: ../../c-api/frame.rst:114
#: ../../c-api/frame.rst:115
msgid "*name* type must be a :class:`str`."
msgstr "*name* 的型別必須是 :class:`str`。"

#: ../../c-api/frame.rst:121
#: ../../c-api/frame.rst:122
msgid ""
"Similar to :c:func:`PyFrame_GetVar`, but the variable name is a C string "
"encoded in UTF-8."
msgstr ""

#: ../../c-api/frame.rst:129
#: ../../c-api/frame.rst:130
msgid ""
"Get the *frame*'s :attr:`~frame.f_locals` attribute. If the frame refers to "
"an :term:`optimized scope`, this returns a write-through proxy object that "
Expand All @@ -159,21 +161,21 @@ msgid ""
"directly (as described for :func:`locals`)."
msgstr ""

#: ../../c-api/frame.rst:140
#: ../../c-api/frame.rst:141
msgid ""
"As part of :pep:`667`, return an instance of :c:var:"
"`PyFrameLocalsProxy_Type`."
msgstr ""

#: ../../c-api/frame.rst:146
#: ../../c-api/frame.rst:147
msgid "Return the line number that *frame* is currently executing."
msgstr ""

#: ../../c-api/frame.rst:150
#: ../../c-api/frame.rst:151
msgid "Frame Locals Proxies"
msgstr ""

#: ../../c-api/frame.rst:154
#: ../../c-api/frame.rst:155
msgid ""
"The :attr:`~frame.f_locals` attribute on a :ref:`frame object <frame-"
"objects>` is an instance of a \"frame-locals proxy\". The proxy object "
Expand All @@ -182,34 +184,34 @@ msgid ""
"to date with the live local variables in the frame itself."
msgstr ""

#: ../../c-api/frame.rst:160
#: ../../c-api/frame.rst:161
msgid "See :pep:`667` for more information."
msgstr "更多資訊請參閱 :pep:`667`。"

#: ../../c-api/frame.rst:164
#: ../../c-api/frame.rst:165
msgid "The type of frame :func:`locals` proxy objects."
msgstr ""

#: ../../c-api/frame.rst:168
#: ../../c-api/frame.rst:169
msgid "Return non-zero if *obj* is a frame :func:`locals` proxy."
msgstr ""

#: ../../c-api/frame.rst:172
#: ../../c-api/frame.rst:173
msgid "Legacy Local Variable APIs"
msgstr ""

#: ../../c-api/frame.rst:174
#: ../../c-api/frame.rst:175
msgid ""
"These APIs are :term:`soft deprecated`. As of Python 3.13, they do nothing. "
"They exist solely for backwards compatibility."
msgstr ""

#: ../../c-api/frame.rst:180 ../../c-api/frame.rst:194
#: ../../c-api/frame.rst:207
#: ../../c-api/frame.rst:181 ../../c-api/frame.rst:195
#: ../../c-api/frame.rst:208
msgid "This function is :term:`soft deprecated` and does nothing."
msgstr ""

#: ../../c-api/frame.rst:182
#: ../../c-api/frame.rst:183
msgid ""
"Prior to Python 3.13, this function would copy the :attr:`~frame.f_locals` "
"attribute of *f* to the internal \"fast\" array of local variables, allowing "
Expand All @@ -218,51 +220,51 @@ msgid ""
"dictionary."
msgstr ""

#: ../../c-api/frame.rst:188 ../../c-api/frame.rst:201
#: ../../c-api/frame.rst:213
#: ../../c-api/frame.rst:189 ../../c-api/frame.rst:202
#: ../../c-api/frame.rst:214
msgid "This function now does nothing."
msgstr ""

#: ../../c-api/frame.rst:196
#: ../../c-api/frame.rst:197
msgid ""
"Prior to Python 3.13, this function would copy the internal \"fast\" array "
"of local variables (which is used by the interpreter) to the :attr:`~frame."
"f_locals` attribute of *f*, allowing changes in local variables to be "
"visible to frame objects."
msgstr ""

#: ../../c-api/frame.rst:209
#: ../../c-api/frame.rst:210
msgid ""
"Prior to Python 3.13, this function was similar to :c:func:"
"`PyFrame_FastToLocals`, but would return ``0`` on success, and ``-1`` with "
"an exception set on failure."
msgstr ""

#: ../../c-api/frame.rst:218
#: ../../c-api/frame.rst:219
msgid ":pep:`667`"
msgstr ":pep:`667`"

#: ../../c-api/frame.rst:222
#: ../../c-api/frame.rst:223
msgid "Internal Frames"
msgstr ""

#: ../../c-api/frame.rst:224
#: ../../c-api/frame.rst:225
msgid "Unless using :pep:`523`, you will not need this."
msgstr ""

#: ../../c-api/frame.rst:228
#: ../../c-api/frame.rst:229
msgid "The interpreter's internal frame representation."
msgstr ""

#: ../../c-api/frame.rst:234
#: ../../c-api/frame.rst:235
msgid "Return a :term:`strong reference` to the code object for the frame."
msgstr ""

#: ../../c-api/frame.rst:241
#: ../../c-api/frame.rst:242
msgid "Return the byte offset into the last executed instruction."
msgstr ""

#: ../../c-api/frame.rst:248
#: ../../c-api/frame.rst:249
msgid ""
"Return the currently executing line number, or -1 if there is no line number."
msgstr ""
77 changes: 67 additions & 10 deletions c-api/interp-lifecycle.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-24 00:20+0000\n"
"POT-Creation-Date: 2026-02-26 18:22+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-tw)\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand All @@ -24,7 +25,9 @@ msgstr "直譯器的初始化與終結化"
msgid ""
"See :ref:`Python Initialization Configuration <init-config>` for details on "
"how to configure the interpreter prior to initialization."
msgstr "關於如何在初始化之前設定直譯器的細節,請參見 :ref:`Python 初始化設定 <init-config>`。"
msgstr ""
"關於如何在初始化之前設定直譯器的細節,請參見 :ref:`Python 初始化設定 <init-"
"config>`。"

#: ../../c-api/interp-lifecycle.rst:14
msgid "Before Python initialization"
Expand Down Expand Up @@ -273,7 +276,8 @@ msgstr ""
msgid ""
"Set by the :option:`-B` option and the :envvar:`PYTHONDONTWRITEBYTECODE` "
"environment variable."
msgstr "由 :option:`-B` 選項與 :envvar:`PYTHONDONTWRITEBYTECODE` 環境變數設定。"
msgstr ""
"由 :option:`-B` 選項與 :envvar:`PYTHONDONTWRITEBYTECODE` 環境變數設定。"

#: ../../c-api/interp-lifecycle.rst:142
msgid ""
Expand All @@ -297,7 +301,8 @@ msgstr ""
msgid ""
"Set to ``1`` if the :envvar:`PYTHONHASHSEED` environment variable is set to "
"a non-empty string."
msgstr "如果環境變數 :envvar:`PYTHONHASHSEED` 被設定為一個非空字串則設為 ``1``。"
msgstr ""
"如果環境變數 :envvar:`PYTHONHASHSEED` 被設定為一個非空字串則設為 ``1``。"

#: ../../c-api/interp-lifecycle.rst:161
msgid ""
Expand All @@ -317,8 +322,8 @@ msgid ""
"Ignore all :envvar:`!PYTHON*` environment variables, e.g. :envvar:"
"`PYTHONPATH` and :envvar:`PYTHONHOME`, that might be set."
msgstr ""
"忽略所有可能被設定的 :envvar:`!PYTHON*` 環境變數,例如 :envvar:`PYTHONPATH` "
":envvar:`PYTHONHOME`。"
"忽略所有可能被設定的 :envvar:`!PYTHON*` 環境變數,例如 :envvar:`PYTHONPATH` "
":envvar:`PYTHONHOME`。"

#: ../../c-api/interp-lifecycle.rst:176
msgid "Set by the :option:`-E` and :option:`-I` options."
Expand Down Expand Up @@ -390,7 +395,9 @@ msgstr ""
msgid ""
"Set to ``1`` if the :envvar:`PYTHONLEGACYWINDOWSFSENCODING` environment "
"variable is set to a non-empty string."
msgstr "如果環境變數 :envvar:`PYTHONLEGACYWINDOWSFSENCODING` 被設定為一個非空字串則設為 ``1``。"
msgstr ""
"如果環境變數 :envvar:`PYTHONLEGACYWINDOWSFSENCODING` 被設定為一個非空字串則設"
"為 ``1``。"

#: ../../c-api/interp-lifecycle.rst:237
msgid "See :pep:`529` for more details."
Expand Down Expand Up @@ -459,7 +466,9 @@ msgstr ""
msgid ""
"Set by the :option:`-s` and :option:`-I` options, and the :envvar:"
"`PYTHONNOUSERSITE` environment variable."
msgstr "由 :option:`-s` 選項、:option:`-I` 選項與 :envvar:`PYTHONNOUSERSITE` 環境變數設定。"
msgstr ""
"由 :option:`-s` 選項、:option:`-I` 選項與 :envvar:`PYTHONNOUSERSITE` 環境變數"
"設定。"

#: ../../c-api/interp-lifecycle.rst:296
msgid ""
Expand Down Expand Up @@ -663,7 +672,9 @@ msgstr ""
msgid ""
"Raises an :ref:`auditing event <auditing>` ``cpython."
"_PySys_ClearAuditHooks`` with no arguments."
msgstr "引發一個不附帶引數的\\ :ref:`稽核事件 <auditing>` ``cpython._PySys_ClearAuditHooks``。"
msgstr ""
"引發一個不附帶引數的\\ :ref:`稽核事件 <auditing>` ``cpython."
"_PySys_ClearAuditHooks``。"

#: ../../c-api/interp-lifecycle.rst:476
msgid ""
Expand Down Expand Up @@ -1143,6 +1154,52 @@ msgid ""
"`Python Initialization Configuration <init-config>`."
msgstr ""

#: ../../c-api/interp-lifecycle.rst:906
msgid ""
"This function works like :c:func:`PySys_SetArgvEx` with *updatepath* set to "
"``1`` unless the :program:`python` interpreter was started with the :option:"
"`-I`."
msgstr ""

#: ../../c-api/interp-lifecycle.rst:916
msgid "The *updatepath* value depends on :option:`-I`."
msgstr ""

#: ../../c-api/interp-lifecycle.rst:923
msgid ""
"This API is kept for backward compatibility: setting :c:member:`PyConfig."
"home` should be used instead, see :ref:`Python Initialization Configuration "
"<init-config>`."
msgstr ""

#: ../../c-api/interp-lifecycle.rst:927
msgid ""
"Set the default \"home\" directory, that is, the location of the standard "
"Python libraries. See :envvar:`PYTHONHOME` for the meaning of the argument "
"string."
msgstr ""

#: ../../c-api/interp-lifecycle.rst:931
msgid ""
"The argument should point to a zero-terminated character string in static "
"storage whose contents will not change for the duration of the program's "
"execution. No code in the Python interpreter will change the contents of "
"this storage."
msgstr ""

#: ../../c-api/interp-lifecycle.rst:944
msgid ""
"Return the default \"home\", that is, the value set by :c:member:`PyConfig."
"home`, or the value of the :envvar:`PYTHONHOME` environment variable if it "
"is set."
msgstr ""

#: ../../c-api/interp-lifecycle.rst:954
msgid ""
"Use :c:func:`PyConfig_Get(\"home\") <PyConfig_Get>` or the :envvar:"
"`PYTHONHOME` environment variable instead."
msgstr ""

#: ../../c-api/interp-lifecycle.rst:357
msgid "PyEval_InitThreads()"
msgstr "PyEval_InitThreads()"
Expand Down
Loading