8000 [po] auto sync · python/python-docs-zh-cn@9dfdfb2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9dfdfb2

Browse files
[po] auto sync
1 parent 44d2118 commit 9dfdfb2

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.23%", "updated_at": "2025-03-31T06:56:45Z"}
1+
{"translation": "81.25%", "updated_at": "2025-03-31T14:55:55Z"}

whatsnew/3.13.po

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,6 +3471,9 @@ msgid ""
34713471
"positional-only in Python 3.15. (Contributed by Erlend E. Aasland in "
34723472
":gh:`108278`.)"
34733473
msgstr ""
3474+
"弃用将名称、参数数量和可调用对象作为 :meth:`.Connection.create_function` 和 "
3475+
":meth:`.Connection.create_aggregate` 的关键字参数传入的做法。 这些形参在 Python 3.15 "
3476+
"中将成为仅限位置形参。 (由 Erlend E. Aasland 在 :gh:`108278` 中贡献。)"
34743477

34753478
#: ../../whatsnew/3.13.rst:1945
34763479
msgid ""
@@ -3481,6 +3484,11 @@ msgid ""
34813484
"methods. The callback callables will become positional-only in Python 3.15. "
34823485
"(Contributed by Erlend E. Aasland in :gh:`108278`.)"
34833486
msgstr ""
3487+
"弃用将 callback 可调用对象作为 :meth:`~sqlite3.Connection.set_authorizer`, "
3488+
":meth:`~sqlite3.Connection.set_progress_handler` 和 "
3489+
":meth:`~sqlite3.Connection.set_trace_callback` 等 "
3490+
":class:`~sqlite3.Connection` 方法的关键字参数传入的做法。 callback 可调用对象在 Python 3.15 "
3491+
"中将成为仅限位置参数。 (由 Erlend E. Aasland 在 :gh:`108278` 中贡献。)"
34843492

34853493
#: ../../whatsnew/3.13.rst:1953
34863494
#: ../../deprecations/pending-removal-in-3.16.rst:47
@@ -3582,6 +3590,10 @@ msgid ""
35823590
"and :class:`~wave.Wave_write` classes, to be removed in Python 3.15. "
35833591
"(Contributed by Victor Stinner in :gh:`105096`.)"
35843592
msgstr ""
3593+
"弃用 :class:`~wave.Wave_read` 和 :class:`~wave.Wave_write` 类的 "
3594+
":meth:`~wave.Wave_read.getmark`, :meth:`!setmark` 和 "
3595+
":meth:`~wave.Wave_read.getmarkers` 方法,将在 Python 3.15 中移除。 (由 Victor Stinner "
3596+
"在 :gh:`105096` 中贡献。)"
35853597

35863598
#: ../../deprecations/c-api-pending-removal-in-3.14.rst:2
35873599
#: ../../deprecations/pending-removal-in-3.14.rst:2
@@ -4849,6 +4861,9 @@ msgid ""
48494861
"``0`` otherwise. These functions do not raise exceptions. (Contributed by "
48504862
"Serhiy Storchaka in :gh:`110289`.)"
48514863
msgstr ""
4864+
"添加了 :c:func:`PyUnicode_EqualToUTF8AndSize` 和 :c:func:`PyUnicode_EqualToUTF8`"
4865+
" 函数以将 Unicode 对象与 :c:expr:`const char*` UTF-8 编码的字符串进行比较并在它们相等时返回 ``1`` 否则返回"
4866+
" ``0``。 这些函数不会引发异常。 (由 Serhiy Storchaka 在 :gh:`110289` 中贡献。)"
48524867

48534868
#: ../../whatsnew/3.13.rst:2240
48544869
msgid ""
@@ -5094,12 +5109,21 @@ msgid ""
50945109
"// You may need to cast buf as `(const char*)view.buf`.\n"
50955110
"PyBuffer_Release(&view);"
50965111
msgstr ""
5112+
"Py_buffer view;\n"
5113+
"if (PyObject_GetBuffer(obj, &view, PyBUF_SIMPLE) < 0) {\n"
5114+
" return NULL;\n"
5115+
"}\n"
5116+
"// 使用 `view.buf` 和 `view.len` 从缓冲区读取。\n"
5117+
"// 你可能需要将 buf 转换为 `(const char*)view.buf`。\n"
5118+
"PyBuffer_Release(&view);"
50975119

50985120
#: ../../whatsnew/3.13.rst:2372
50995121
msgid ""
51005122
":c:func:`!PyObject_AsWriteBuffer`: Use :c:func:`PyObject_GetBuffer` and "
51015123
":c:func:`PyBuffer_Release` instead:"
51025124
msgstr ""
5125+
":c:func:`!PyObject_AsWriteBuffer`: 改用 :c:func:`PyObject_GetBuffer` 和 "
5126+
":c:func:`PyBuffer_Release`:"
51035127

51045128
#: ../../whatsnew/3.13.rst:2375
51055129
msgid ""
@@ -5110,6 +5134,12 @@ msgid ""
51105134
"// Use `view.buf` and `view.len` to write to the buffer.\n"
51115135
"PyBuffer_Release(&view);"
51125136
msgstr ""
5137+
"Py_buffer view;\n"
5138+
"if (PyObject_GetBuffer(obj, &view, PyBUF_WRITABLE) < 0) {\n"
5139+
" return NULL;\n"
5140+
"}\n"
5141+
"// 使用 `view.buf` 和 `view.len` 向缓冲区写入。\n"
5142+
"PyBuffer_Release(&view);"
51135143

51145144
#: ../../whatsnew/3.13.rst:2384
51155145
msgid "(Contributed by Inada Naoki in :gh:`85275`.)"
@@ -5283,12 +5313,16 @@ msgid ""
52835313
"Remove the ``cpython/pytime.h`` header file, which only contained private "
52845314
"functions. (Contributed by Victor Stinner in :gh:`106316`.)"
52855315
msgstr ""
5316+
"移除了 ``cpython/pytime.h`` 头文件,它仅包含私有函数。 (由 Victor Stinner 在 :gh:`106316` "
5317+
"中贡献。)"
52865318

52875319
#: ../../whatsnew/3.13.rst:2471
52885320
msgid ""
52895321
"Remove the undocumented ``PY_TIMEOUT_MAX`` constant from the limited C API. "
52905322
"(Contributed by Victor Stinner in :gh:`110014`.)"
52915323
msgstr ""
5324+
"从受限 C API 移除了未写入文档的 ``PY_TIMEOUT_MAX`` 常量。 (由 Victor Stinner 在 :gh:`110014` "
5325+
"中贡献。)"
52925326

52935327
#: ../../whatsnew/3.13.rst:2474
52945328
msgid ""
@@ -5297,6 +5331,9 @@ msgid ""
52975331
"``Py_TRASHCAN_BEGIN`` and ``Py_TRASHCAN_END``. (Contributed by Irit Katriel "
52985332
"in :gh:`105111`.)"
52995333
msgstr ""
5334+
"移除了旧的 trashcan 宏 ``Py_TRASHCAN_SAFE_BEGIN`` 和 ``Py_TRASHCAN_SAFE_END``。 "
5335+
"将两者替换为新的宏 ``Py_TRASHCAN_BEGIN`` 和 ``Py_TRASHCAN_END``。 (由 Irit Katriel 在 "
5336+
":gh:`105111` 中贡献。)"
53005337

53015338
#: ../../whatsnew/3.13.rst:2481
53025339
msgid "Deprecated C APIs"
@@ -5862,6 +5899,8 @@ msgid ""
58625899
"flags. For example, the free-threaded build generates ``python-3.13t.pc`` "
58635900
"and the debug build generates ``python-3.13d.pc``."
58645901
msgstr ""
5902+
"在 POSIX 系统上,pkg-config (``.pc``) 文件名现在会包括 ABI 旗标。 例如,自由线程构建版将生成 "
5903+
"``python-3.13t.pc`` 而调试构建版将生成 ``python-3.13d.pc``。"
58655904

58665905
#: ../../whatsnew/3.13.rst:2596
58675906
msgid ""
@@ -6062,7 +6101,7 @@ msgstr ""
60626101

60636102
#: ../../whatsnew/3.13.rst:2709
60646103
msgid "A ``tp_dealloc`` function that has the old macros, such as::"
6065-
msgstr ""
6104+
msgstr "带有旧版宏的 ``tp_dealloc`` 函数,例如::"
60666105

60676106
#: ../../whatsnew/3.13.rst:2711
60686107
msgid ""
@@ -6268,7 +6307,7 @@ msgstr "``_Py_IsFinalizing()``::c:func:`Py_IsFinalizing`。"
62686307
msgid ""
62696308
"The `pythoncapi-compat project`_ can be used to get most of these new "
62706309
"functions on Python 3.12 and older."
6271-
msgstr ""
6310+
msgstr "在 Python 3.12 和更旧的版本中可以使用 `pythoncapi-compat project`_ 来充分利用这些新函数。"
62726311

62736312
#: ../../whatsnew/3.13.rst:2798
62746313
msgid "Regression Test Changes"
@@ -6296,3 +6335,5 @@ msgid ""
62966335
"only exists in specialized builds of Python, may now return objects from "
62976336
"other interpreters than the one it's called in."
62986337
msgstr ""
6338+
"之前未写入文档的特殊函数 :func:`sys.getobjects`,它仅存在于某些专用的 Python "
6339+
"构建版,现在可以从其他解释器而非调用它的解释器返回对象。"

0 commit comments

Comments
 (0)
0