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

Skip to content

Commit d82263c

Browse files
[po] auto sync
1 parent f5bd512 commit d82263c

3 files changed

Lines changed: 24 additions & 5 deletions

File tree

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "90.68%", "updated_at": "2023-09-08T02:56:18Z"}
1+
{"translation": "90.69%", "updated_at": "2023-09-08T06:56:27Z"}

c-api/typeobj.po

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1478,6 +1478,14 @@ msgid ""
14781478
"for the list type has fixed-length instances, yet those instances have a "
14791479
"meaningful :c:member:`~PyVarObject.ob_size` field)."
14801480
msgstr ""
1481+
"对于具有可变长度实例的类型,实例必须有一个 :c:member:`~PyVarObject.ob_size` 字段,实例大小为 "
1482+
":c:member:`~PyTypeObject.tp_basicsize` 加上 N 乘以 "
1483+
":c:member:`~PyTypeObject.tp_itemsize`,其中 N 是对象的“长度”。 N 的值通常存储在实例的 "
1484+
":c:member:`~PyVarObject.ob_size` 字段中。 但也有例外:举例来说,整数类型使用负的 "
1485+
":c:member:`~PyVarObject.ob_size` 来表示负数,N 在这里就是 ``abs(ob_size)``。 此外,在实例布局中存在"
1486+
" :c:member:`~PyVarObject.ob_size` "
1487+
"字段并不意味着实例结构是可变长度的(例如,列表类型的结构体有固定长度的实例,但这些实例却包含一个有意义的 "
1488+
":c:member:`~PyVarObject.ob_size` 字段)。"
14811489

14821490
#: ../../c-api/typeobj.rst:632
14831491
msgid ""
@@ -1490,6 +1498,11 @@ msgid ""
14901498
"``sizeof`` operator on the struct used to declare the instance layout. The "
14911499
"basic size does not include the GC header size."
14921500
msgstr ""
1501+
"基本大小包括由宏 :c:macro:`PyObject_HEAD` 或 :c:macro:`PyObject_VAR_HEAD` "
1502+
"(以用于声明实例结构的宏为准)声明的实例中的字段,如果存在 :c:member:`~PyObject._ob_prev` 和 "
1503+
":c:member:`~PyObject._ob_next` 字段则将相应地包括这些字段。 这意味着为 "
1504+
":c:member:`~PyTypeObject.tp_basicsize` 获取初始化器的唯一正确方式是在用于声明实例布局的结构上使用 "
1505+
"``sizeof`` 操作符。 基本大小不包括 GC 标头的大小。"
14931506

14941507
#: ../../c-api/typeobj.rst:640
14951508
msgid ""
@@ -1501,12 +1514,16 @@ msgid ""
15011514
":c:member:`~PyTypeObject.tp_basicsize` is a multiple of ``sizeof(double)`` "
15021515
"(assuming this is the alignment requirement for ``double``)."
15031516
msgstr ""
1517+
"关于对齐的说明:如果变量条目需要特定的对齐,则应通过 :c:member:`~PyTypeObject.tp_basicsize` 的值来处理。 "
1518+
"例如:假设某个类型实现了一个 ``double`` 数组。 :c:member:`~PyTypeObject.tp_itemsize` 就是 "
1519+
"``sizeof(double)``。 程序员有责任确保 :c:member:`~PyTypeObject.tp_basicsize` 是 "
1520+
"``sizeof(double)`` 的倍数(假设这是 ``double`` 的对齐要求)。"
15041521

15051522
#: ../../c-api/typeobj.rst:647
15061523
msgid ""
15071524
"For any type with variable-length instances, this field must not be "
15081525
"``NULL``."
1509-
msgstr ""
1526+
msgstr "对于任何具有可变长度实例的类型,该字段不可为 ``NULL``。"
15101527

15111528
#: ../../c-api/typeobj.rst:651
15121529
msgid ""
@@ -1515,6 +1532,8 @@ msgid ""
15151532
"set :c:member:`~PyTypeObject.tp_itemsize` to a different non-zero value in a"
15161533
" subtype (though this depends on the implementation of the base type)."
15171534
msgstr ""
1535+
"这些字段将由子类分别继承。 如果基本类型有一个非零的 :c:member:`~PyTypeObject.tp_itemsize`,那么在子类型中将 "
1536+
":c:member:`~PyTypeObject.tp_itemsize` 设置为不同的非零值通常是不安全的(不过这取决于该基本类型的具体实现)。"
15181537

15191538
#: ../../c-api/typeobj.rst:659
15201539
msgid ""

library/typing.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# Alpha Du <[email protected]>, 2023
1616
# ppcfish <[email protected]>, 2023
1717
# Nyuan Zhang, 2023
18-
# Freesand Leo <[email protected]>, 2023
1918
# 乐成 王, 2023
19+
# Freesand Leo <[email protected]>, 2023
2020
#
2121
#, fuzzy
2222
msgid ""
@@ -25,7 +25,7 @@ msgstr ""
2525
"Report-Msgid-Bugs-To: \n"
2626
"POT-Creation-Date: 2023-09-01 14:13+0000\n"
2727
"PO-Revision-Date: 2021-06-28 01:16+0000\n"
28-
"Last-Translator: 乐成 王, 2023\n"
28+
"Last-Translator: Freesand Leo <[email protected]>, 2023\n"
2929
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
3030
"MIME-Version: 1.0\n"
3131
"Content-Type: text/plain; charset=UTF-8\n"
@@ -529,7 +529,7 @@ msgstr "由于无法以通用方式静态地推断容器中保存的对象的类
529529
msgid ""
530530
"Generic functions and classes can be parameterized by using :ref:`type "
531531
"parameter syntax <type-params>`::"
532-
msgstr ""
532+
msgstr "泛型函数和类可以通过使用 :ref:`类型形参语法 <type-params>` 来实现参数化::"
533533

534534
#: ../../library/typing.rst:379
535535
msgid "Or by using the :class:`TypeVar` factory directly::"

0 commit comments

Comments
 (0)