Skip to content

Commit 3c55f3e

Browse files
sync with cpython d76c56e9
1 parent d40ec47 commit 3c55f3e

File tree

2 files changed

+430
-385
lines changed

2 files changed

+430
-385
lines changed

c-api/frame.po

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.14\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2025-11-11 00:15+0000\n"
8+
"POT-Creation-Date: 2026-02-28 00:16+0000\n"
99
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1111
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -76,81 +76,83 @@ msgid "Get the *frame* next outer frame."
7676
msgstr ""
7777

7878
#: ../../c-api/frame.rst:51
79+
#, fuzzy
7980
msgid ""
80-
"Return a :term:`strong reference`, or ``NULL`` if *frame* has no outer frame."
81-
msgstr ""
81+
"Return a :term:`strong reference`, or ``NULL`` if *frame* has no outer "
82+
"frame. This raises no exceptions."
83+
msgstr "回傳 :term:`strong reference` 或 ``NULL``。"
8284

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

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

91-
#: ../../c-api/frame.rst:68
93+
#: ../../c-api/frame.rst:69
9294
msgid "Get the *frame* code."
9395
msgstr ""
9496

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

99-
#: ../../c-api/frame.rst:72
101+
#: ../../c-api/frame.rst:73
100102
msgid "The result (frame code) cannot be ``NULL``."
101103
msgstr ""
102104

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

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

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

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

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

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

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

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

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

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

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

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

162-
#: ../../c-api/frame.rst:140
164+
#: ../../c-api/frame.rst:141
163165
msgid ""
164166
"As part of :pep:`667`, return an instance of :c:var:"
165167
"`PyFrameLocalsProxy_Type`."
166168
msgstr ""
167169

168-
#: ../../c-api/frame.rst:146
170+
#: ../../c-api/frame.rst:147
169171
msgid "Return the line number that *frame* is currently executing."
170172
msgstr ""
171173

172-
#: ../../c-api/frame.rst:150
174+
#: ../../c-api/frame.rst:151
173175
msgid "Frame Locals Proxies"
174176
msgstr ""
175177

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

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

189-
#: ../../c-api/frame.rst:164
191+
#: ../../c-api/frame.rst:165
190192
msgid "The type of frame :func:`locals` proxy objects."
191193
msgstr ""
192194

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

197-
#: ../../c-api/frame.rst:172
199+
#: ../../c-api/frame.rst:173
198200
msgid "Legacy Local Variable APIs"
199201
msgstr ""
200202

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

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

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

221-
#: ../../c-api/frame.rst:188 ../../c-api/frame.rst:201
222-
#: ../../c-api/frame.rst:213
223+
#: ../../c-api/frame.rst:189 ../../c-api/frame.rst:202
224+
#: ../../c-api/frame.rst:214
223225
msgid "This function now does nothing."
224226
msgstr ""
225227

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

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

241-
#: ../../c-api/frame.rst:218
243+
#: ../../c-api/frame.rst:219
242244
msgid ":pep:`667`"
243245
msgstr ":pep:`667`"
244246

245-
#: ../../c-api/frame.rst:222
247+
#: ../../c-api/frame.rst:223
246248
msgid "Internal Frames"
247249
msgstr ""
248250

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

253-
#: ../../c-api/frame.rst:228
255+
#: ../../c-api/frame.rst:229
254256
msgid "The interpreter's internal frame representation."
255257
msgstr ""
256258

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

261-
#: ../../c-api/frame.rst:241
263+
#: ../../c-api/frame.rst:242
262264
msgid "Return the byte offset into the last executed instruction."
263265
msgstr ""
264266

265-
#: ../../c-api/frame.rst:248
267+
#: ../../c-api/frame.rst:249
266268
msgid ""
267269
"Return the currently executing line number, or -1 if there is no line number."
268270
msgstr ""

0 commit comments

Comments
 (0)