Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fbde7a5

Browse files
[po] auto sync
1 parent 04688b6 commit fbde7a5

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "89.57%", "updated_at": "2023-08-11T02:04:50Z"}
1+
{"translation": "89.60%", "updated_at": "2023-08-11T07:57:34Z"}

c-api/code.po

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ msgid ""
256256
"whether a callback is invoked or not), it does not change the semantics of "
257257
"the Python code being executed."
258258
msgstr ""
259+
"本 API 的用户不应依赖内部运行时的实现细节。 这类细节可能包括但不限于创建和销毁代码对象的确切顺序和时间。 "
260+
"虽然这些细节的变化可能会导致监视器可观察到的差异(包括回调是否被发起调用),但不会改变正在执行的 Python 代码的语义。"
259261

260262
#: ../../c-api/code.rst:187
261263
msgid ""
@@ -286,75 +288,80 @@ msgid ""
286288
"To support low-level extensions to frame evaluation, such as external just-"
287289
"in-time compilers, it is possible to attach arbitrary extra data to code "
288290
"objects."
289-
msgstr ""
291+
msgstr "为了支持对帧求值的低层级扩展,如外部即时编译器等,可以在代码对象上附加任意的额外数据。"
290292

291293
#: ../../c-api/code.rst:207
292294
msgid ""
293295
"These functions are part of the unstable C API tier: this functionality is a"
294296
" CPython implementation detail, and the API may change without deprecation "
295297
"warnings."
296-
msgstr ""
298+
msgstr "这些函数是不稳定 C API 层的一部分:该功能是 CPython 的实现细节,此 API 可能随时改变而不发出弃用警告。"
297299

298300
#: ../../c-api/code.rst:213
299301
msgid ""
300302
"Return a new an opaque index value used to adding data to code objects."
301-
msgstr ""
303+
msgstr "返回一个新的不透明索引值用于向代码对象添加数据。"
302304

303305
#: ../../c-api/code.rst:215
304306
msgid ""
305307
"You generally call this function once (per interpreter) and use the result "
306308
"with ``PyCode_GetExtra`` and ``PyCode_SetExtra`` to manipulate data on "
307309
"individual code objects."
308310
msgstr ""
311+
"通常情况下(对于每个解释器)你只需调用该函数一次然后将调用结果与 ``PyCode_GetExtra`` 和 ``PyCode_SetExtra`` "
312+
"一起使用以操作单个代码对象上的数据。"
309313

310314
#: ../../c-api/code.rst:219
311315
msgid ""
312316
"If *free* is not ``NULL``: when a code object is deallocated, *free* will be"
313317
" called on non-``NULL`` data stored under the new index. Use "
314318
":c:func:`Py_DecRef` when storing :c:type:`PyObject`."
315319
msgstr ""
320+
"如果 *free* 没有不为 ``NULL``: 当代码对象被释放时,*free* 将在存储于新索引下的非 ``NULL`` 数据上被调用。 当存储 "
321+
":c:type:`PyObject` 时使用 :c:func:`Py_DecRef`。"
316322

317323
#: ../../c-api/code.rst:225
318324
msgid "as ``_PyEval_RequestCodeExtraIndex``"
319-
msgstr ""
325+
msgstr "作为 ``_PyEval_RequestCodeExtraIndex``"
320326

321327
#: ../../c-api/code.rst:229
322328
msgid ""
323329
"Renamed to ``PyUnstable_Eval_RequestCodeExtraIndex``. The old private name "
324330
"is deprecated, but will be available until the API changes."
325331
msgstr ""
332+
"重命名为 ``PyUnstable_Eval_RequestCodeExtraIndex``。 旧的私有名称已被弃用,但在 API 更改之前仍将可用。"
326333

327334
#: ../../c-api/code.rst:235
328335
msgid ""
329336
"Set *extra* to the extra data stored under the given index. Return 0 on "
330337
"success. Set an exception and return -1 on failure."
331-
msgstr ""
338+
msgstr "将 *extra* 设为存储在给定索引下的额外数据。 成功时将返回 0。 失败时将设置一个异常并返回 -1。"
332339

333340
#: ../../c-api/code.rst:238
334341
msgid ""
335342
"If no data was set under the index, set *extra* to ``NULL`` and return 0 "
336343
"without setting an exception."
337-
msgstr ""
344+
msgstr "如果未在索引下设置数据,则将 *extra* 设为 ``NULL`` 并返回 0 而不设置异常。"
338345

339346
#: ../../c-api/code.rst:243
340347
msgid "as ``_PyCode_GetExtra``"
341-
msgstr ""
348+
msgstr "作为 ``_PyCode_GetExtra``"
342349

343350
#: ../../c-api/code.rst:247
344351
msgid ""
345352
"Renamed to ``PyUnstable_Code_GetExtra``. The old private name is deprecated,"
346353
" but will be available until the API changes."
347-
msgstr ""
354+
msgstr "重命名为 ``PyUnstable_Code_GetExtra``。 旧的私有名称已被弃用,但在 API 更改之前仍将可用。"
348355

349356
#: ../../c-api/code.rst:253
350357
msgid ""
351358
"Set the extra data stored under the given index to *extra*. Return 0 on "
352359
"success. Set an exception and return -1 on failure."
353-
msgstr ""
360+
msgstr "将存储在给定索引下的额外数据设为 *extra*。 成功时将返回 0。 失败时将设置一个异常并返回 -1。"
354361

355362
#: ../../c-api/code.rst:258
356363
msgid "as ``_PyCode_SetExtra``"
357-
msgstr ""
364+
msgstr "作为 ``_PyCode_SetExtra``"
358365

359366
#: ../../c-api/code.rst:262
360367
msgid ""

0 commit comments

Comments
 (0)