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

Skip to content

Commit 56ed744

Browse files
[po] auto sync
1 parent 7fd8fdb commit 56ed744

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.15%", "updated_at": "2025-03-29T14:55:32Z"}
1+
{"translation": "81.17%", "updated_at": "2025-03-30T06:55:24Z"}

reference/datamodel.po

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ msgid ""
3434
msgstr ""
3535
"Project-Id-Version: Python 3.13\n"
3636
"Report-Msgid-Bugs-To: \n"
37-
"POT-Creation-Date: 2025-03-21 14:18+0000\n"
37+
"POT-Creation-Date: 2025-03-28 14:18+0000\n"
3838
"PO-Revision-Date: 2021-06-28 01:19+0000\n"
3939
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n"
4040
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -1440,6 +1440,10 @@ msgid ""
14401440
"derived). So if a loader can load from a cached module but otherwise does "
14411441
"not load from a file, that atypical scenario may be appropriate."
14421442
msgstr ""
1443+
"请注意 :attr:`!__cached__` 即使在未设置 :attr:`!__file__` 时也可能会被设置。 不过,那样的场景是非典型的。 "
1444+
"最终,:term:`loader` 会是 :term:`finder` (from which :attr:`!__file__` 和 "
1445+
":attr:`!__cached__` 也是自它派生的) 所提供的模块规格的使用方。 "
1446+
"因此如果一个加载器可以从缓存加载模块但是不能从文件加载,那样的非典型场景就是适当的。"
14431447

14441448
#: ../../reference/datamodel.rst:1061
14451449
msgid ""
@@ -1502,6 +1506,8 @@ msgid ""
15021506
" listed here, :attr:`!__dict__` cannot be accessed as a global variable from"
15031507
" within a module; it can only be accessed as an attribute on module objects."
15041508
msgstr ""
1509+
"以字典对象表示的模块命名空间。 在此处列出的属性中它很特别,:attr:`!__dict__` "
1510+
"不能从模块内部作为全局变量来访问;它只能作为模块对象上的属性来访问。"
15051511

15061512
#: ../../reference/datamodel.rst:1103
15071513
msgid ""
@@ -1628,25 +1634,30 @@ msgid ""
16281634
" attribute may not exist for some classes. Use "
16291635
":func:`inspect.get_annotations` to retrieve class annotations safely."
16301636
msgstr ""
1637+
"当存在元类时直接访问类对象的 :attr:`!__annotations__` 属性可能产生不正确的结果。 此外,对于某些类该属性可能不存在。 请使用 "
1638+
":func:`inspect.get_annotations` 来安全地提取类标注。"
16311639

16321640
#: ../../reference/datamodel.rst:1213
16331641
msgid ""
16341642
"A :class:`tuple` containing the :ref:`type parameters <type-params>` of a "
16351643
":ref:`generic class <generic-classes>`."
16361644
msgstr ""
1645+
"一个包含 :ref:`泛型类 <generic-classes>` 的 :ref:`类型形参 <type-params>` 的 "
1646+
":class:`tuple`。"
16371647

16381648
#: ../../reference/datamodel.rst:1219
16391649
msgid ""
16401650
"A :class:`tuple` containing names of attributes of this class which are "
16411651
"assigned through ``self.X`` from any function in its body."
1642-
msgstr ""
1652+
msgstr "一个包含由通过 ``self.X`` 赋值为该类语句体中任何函数的类属性名称组成的 :class:`tuple`。"
16431653

16441654
#: ../../reference/datamodel.rst:1225
16451655
msgid ""
16461656
"The line number of the first line of the class definition, including "
16471657
"decorators. Setting the :attr:`__module__` attribute removes the "
16481658
":attr:`!__firstlineno__` item from the type's dictionary."
16491659
msgstr ""
1660+
"类定义的第一行的行号。 设置 :attr:`__module__` 属性将从类型的字典中移除 :attr:`!__firstlineno__` 条目。"
16501661

16511662
#: ../../reference/datamodel.rst:1233
16521663
msgid ""
@@ -2767,6 +2778,9 @@ msgid ""
27672778
"method may generate these results directly, but may also return "
27682779
":data:`NotImplemented`."
27692780
msgstr ""
2781+
"在默认情况下,:class:`object` 类提供与 :ref:`expressions-value-comparisons` "
2782+
"一致的实现:相等比较是根据对象标识号,而顺序比较会引发 :exc:`TypeError`。 每个默认方法都可能直接生成这样的结果,但也可能返回 "
2783+
":data:`NotImplemented`。"
27702784

27712785
#: ../../reference/datamodel.rst:2096
27722786
msgid ""
@@ -2864,6 +2878,9 @@ msgid ""
28642878
"appropriate value such that ``x == y`` implies both that ``x is y`` and "
28652879
"``hash(x) == hash(y)``."
28662880
msgstr ""
2881+
"用户自定义的类默认带有 :meth:`__eq__` 和 :meth:`__hash__` 方法(继承自 :class:`object` "
2882+
"类);因为它们的存在,所有对象(自己除外)相互比较必定不相等并且 ``x.__hash__()`` 将返回一个恰当的值以使得 ``x == y`` "
2883+
"同时意味着 ``x is y`` 且 ``hash(x) == hash(y)``。"
28672884

28682885
#: ../../reference/datamodel.rst:2155
28692886
msgid ""

0 commit comments

Comments
 (0)
0