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

Commit9833f26

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 462e2255
1 parent3a4c91a commit9833f26

File tree

3 files changed

+321
-251
lines changed

3 files changed

+321
-251
lines changed

‎c-api/frame.po‎

Lines changed: 89 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version:Python 3.14\n"
88
"Report-Msgid-Bugs-To:\n"
9-
"POT-Creation-Date:2024-12-12 00:15+0000\n"
9+
"POT-Creation-Date:2025-11-11 00:15+0000\n"
1010
"PO-Revision-Date:YEAR-MO-DA HO:MI+ZONE\n"
1111
"Last-Translator:FULL NAME <EMAIL@ADDRESS>\n"
1212
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -56,95 +56,102 @@ msgid ""
5656
msgstr""
5757

5858
#:../../c-api/frame.rst:34
59+
msgid""
60+
"Create a new frame object. This function returns a :term:`strong reference` "
61+
"to the new frame object on success, and returns ``NULL`` with an exception "
62+
"set on failure."
63+
msgstr""
64+
65+
#:../../c-api/frame.rst:40
5966
msgid"Return non-zero if *obj* is a frame object."
6067
msgstr""
6168

62-
#:../../c-api/frame.rst:38
69+
#:../../c-api/frame.rst:44
6370
msgid""
6471
"Previously, this function was only available after including ``<frameobject."
6572
"h>``."
6673
msgstr""
6774

68-
#:../../c-api/frame.rst:43
75+
#:../../c-api/frame.rst:49
6976
msgid"Get the *frame* next outer frame."
7077
msgstr""
7178

72-
#:../../c-api/frame.rst:45
79+
#:../../c-api/frame.rst:51
7380
msgid""
7481
"Return a :term:`strong reference`, or ``NULL`` if *frame* has no outer frame."
7582
msgstr""
7683

77-
#:../../c-api/frame.rst:53
84+
#:../../c-api/frame.rst:59
7885
msgid"Get the *frame*'s :attr:`~frame.f_builtins` attribute."
7986
msgstr"取得 *frame* 的 :attr:`~frame.f_builtins` 屬性。"
8087

81-
#:../../c-api/frame.rst:55../../c-api/frame.rst:86
88+
#:../../c-api/frame.rst:61../../c-api/frame.rst:92
8289
msgid"Return a :term:`strong reference`. The result cannot be ``NULL``."
8390
msgstr"回傳 :term:`strong reference`。結果不能為 ``NULL``。"
8491

85-
#:../../c-api/frame.rst:62
92+
#:../../c-api/frame.rst:68
8693
msgid"Get the *frame* code."
8794
msgstr""
8895

89-
#:../../c-api/frame.rst:64../../c-api/frame.rst:130
96+
#:../../c-api/frame.rst:70../../c-api/frame.rst:136
9097
msgid"Return a :term:`strong reference`."
9198
msgstr"回傳 :term:`strong reference`。"
9299

93-
#:../../c-api/frame.rst:66
100+
#:../../c-api/frame.rst:72
94101
msgid"The result (frame code) cannot be ``NULL``."
95102
msgstr""
96103

97-
#:../../c-api/frame.rst:73
104+
#:../../c-api/frame.rst:79
98105
msgid""
99106
"Get the generator, coroutine, or async generator that owns this frame, or "
100107
"``NULL`` if this frame is not owned by a generator. Does not raise an "
101108
"exception, even if the return value is ``NULL``."
102109
msgstr""
103110

104-
#:../../c-api/frame.rst:77
111+
#:../../c-api/frame.rst:83
105112
msgid"Return a :term:`strong reference`, or ``NULL``."
106113
msgstr"回傳 :term:`strong reference` 或 ``NULL``。"
107114

108-
#:../../c-api/frame.rst:84
115+
#:../../c-api/frame.rst:90
109116
msgid"Get the *frame*'s :attr:`~frame.f_globals` attribute."
110117
msgstr"取得 *frame* 的 :attr:`~frame.f_globals` 屬性。"
111118

112-
#:../../c-api/frame.rst:93
119+
#:../../c-api/frame.rst:99
113120
msgid"Get the *frame*'s :attr:`~frame.f_lasti` attribute."
114121
msgstr"取得 *frame* 的 :attr:`~frame.f_lasti` 屬性。"
115122

116-
#:../../c-api/frame.rst:95
123+
#:../../c-api/frame.rst:101
117124
msgid"Returns -1 if ``frame.f_lasti`` is ``None``."
118125
msgstr"如果 ``frame.f_lasti`` 是 ``None`` 則回傳 -1。"
119126

120-
#:../../c-api/frame.rst:102
127+
#:../../c-api/frame.rst:108
121128
msgid"Get the variable *name* of *frame*."
122129
msgstr"取得 *frame* 的變數 *name*。"
123130

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

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

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

137-
#:../../c-api/frame.rst:108
144+
#:../../c-api/frame.rst:114
138145
msgid"*name* type must be a :class:`str`."
139146
msgstr"*name* 的型別必須是 :class:`str`。"
140147

141-
#:../../c-api/frame.rst:115
148+
#:../../c-api/frame.rst:121
142149
msgid""
143150
"Similar to :c:func:`PyFrame_GetVar`, but the variable name is a C string "
144151
"encoded in UTF-8."
145152
msgstr""
146153

147-
#:../../c-api/frame.rst:123
154+
#:../../c-api/frame.rst:129
148155
msgid""
149156
"Get the *frame*'s :attr:`~frame.f_locals` attribute. If the frame refers to "
150157
"an :term:`optimized scope`, this returns a write-through proxy object that "
@@ -153,21 +160,21 @@ msgid ""
153160
"directly (as described for :func:`locals`)."
154161
msgstr""
155162

156-
#:../../c-api/frame.rst:134
163+
#:../../c-api/frame.rst:140
157164
msgid""
158165
"As part of :pep:`667`, return an instance of :c:var:"
159166
"`PyFrameLocalsProxy_Type`."
160167
msgstr""
161168

162-
#:../../c-api/frame.rst:140
169+
#:../../c-api/frame.rst:146
163170
msgid"Return the line number that *frame* is currently executing."
164171
msgstr""
165172

166-
#:../../c-api/frame.rst:144
173+
#:../../c-api/frame.rst:150
167174
msgid"Frame Locals Proxies"
168175
msgstr""
169176

170-
#:../../c-api/frame.rst:148
177+
#:../../c-api/frame.rst:154
171178
msgid""
172179
"The :attr:`~frame.f_locals` attribute on a :ref:`frame object <frame-"
173180
"objects>` is an instance of a\"frame-locals proxy\". The proxy object "
@@ -176,39 +183,87 @@ msgid ""
176183
"to date with the live local variables in the frame itself."
177184
msgstr""
178185

179-
#:../../c-api/frame.rst:154
186+
#:../../c-api/frame.rst:160
180187
msgid"See :pep:`667` for more information."
181188
msgstr""
182189

183-
#:../../c-api/frame.rst:158
190+
#:../../c-api/frame.rst:164
184191
msgid"The type of frame :func:`locals` proxy objects."
185192
msgstr""
186193

187-
#:../../c-api/frame.rst:162
194+
#:../../c-api/frame.rst:168
188195
msgid"Return non-zero if *obj* is a frame :func:`locals` proxy."
189196
msgstr""
190197

191-
#:../../c-api/frame.rst:165
198+
#:../../c-api/frame.rst:172
199+
msgid"Legacy Local Variable APIs"
200+
msgstr""
201+
202+
#:../../c-api/frame.rst:174
203+
msgid""
204+
"These APIs are :term:`soft deprecated`. As of Python 3.13, they do nothing. "
205+
"They exist solely for backwards compatibility."
206+
msgstr""
207+
208+
#:../../c-api/frame.rst:180../../c-api/frame.rst:194
209+
#:../../c-api/frame.rst:207
210+
msgid"This function is :term:`soft deprecated` and does nothing."
211+
msgstr""
212+
213+
#:../../c-api/frame.rst:182
214+
msgid""
215+
"Prior to Python 3.13, this function would copy the :attr:`~frame.f_locals` "
216+
"attribute of *f* to the internal\"fast\" array of local variables, allowing "
217+
"changes in frame objects to be visible to the interpreter. If *clear* was "
218+
"true, this function would process variables that were unset in the locals "
219+
"dictionary."
220+
msgstr""
221+
222+
#:../../c-api/frame.rst:188../../c-api/frame.rst:201
223+
#:../../c-api/frame.rst:213
224+
msgid"This function now does nothing."
225+
msgstr""
226+
227+
#:../../c-api/frame.rst:196
228+
msgid""
229+
"Prior to Python 3.13, this function would copy the internal\"fast\" array "
230+
"of local variables (which is used by the interpreter) to the :attr:`~frame."
231+
"f_locals` attribute of *f*, allowing changes in local variables to be "
232+
"visible to frame objects."
233+
msgstr""
234+
235+
#:../../c-api/frame.rst:209
236+
msgid""
237+
"Prior to Python 3.13, this function was similar to :c:func:"
238+
"`PyFrame_FastToLocals`, but would return ``0`` on success, and ``-1`` with "
239+
"an exception set on failure."
240+
msgstr""
241+
242+
#:../../c-api/frame.rst:218
243+
msgid":pep:`667`"
244+
msgstr""
245+
246+
#:../../c-api/frame.rst:222
192247
msgid"Internal Frames"
193248
msgstr""
194249

195-
#:../../c-api/frame.rst:167
250+
#:../../c-api/frame.rst:224
196251
msgid"Unless using :pep:`523`, you will not need this."
197252
msgstr""
198253

199-
#:../../c-api/frame.rst:171
254+
#:../../c-api/frame.rst:228
200255
msgid"The interpreter's internal frame representation."
201256
msgstr""
202257

203-
#:../../c-api/frame.rst:177
258+
#:../../c-api/frame.rst:234
204259
msgid"Return a :term:`strong reference` to the code object for the frame."
205260
msgstr""
206261

207-
#:../../c-api/frame.rst:184
262+
#:../../c-api/frame.rst:241
208263
msgid"Return the byte offset into the last executed instruction."
209264
msgstr""
210265

211-
#:../../c-api/frame.rst:191
266+
#:../../c-api/frame.rst:248
212267
msgid""
213268
"Return the currently executing line number, or -1 if there is no line number."
214269
msgstr""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp