-
-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathtype.po
More file actions
153 lines (134 loc) · 7.78 KB
/
type.po
File metadata and controls
153 lines (134 loc) · 7.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2023, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# stone jing <stonejing1817@gmail.com>, 2019
# Freesand Leo <yuqinju@163.com>, 2022
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.7\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-02-24 14:40+0000\n"
"PO-Revision-Date: 2019-09-01 03:41+0000\n"
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2022\n"
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:6
msgid "Type Objects"
msgstr "类型对象"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:13
msgid "The C structure of the objects used to describe built-in types."
msgstr "对象的 C 结构用于描述 built-in 类型。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:18
msgid ""
"This is the type object for type objects; it is the same object as "
":class:`type` in the Python layer."
msgstr "这是属于 type 对象的 type object,它在 Python 层面和 :class:`type` 是相同的对象。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:24
msgid ""
"Return true if the object *o* is a type object, including instances of types"
" derived from the standard type object. Return false in all other cases."
msgstr "如果对象 *o* 是一个类型对象,包括继承于标准类型对象的类型实例,返回真。在其它所有情况下返回假。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:30
msgid ""
"Return true if the object *o* is a type object, but not a subtype of the "
"standard type object. Return false in all other cases."
msgstr "如果对象 *o* 是一个类型对象,但不是标准类型对象的子类型时,返回真。在其它所有情况下返回假。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:36
msgid "Clear the internal lookup cache. Return the current version tag."
msgstr "清空内部查找缓存。 返回当前版本标签。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:40
msgid ""
"Return the :c:member:`~PyTypeObject.tp_flags` member of *type*. This "
"function is primarily meant for use with `Py_LIMITED_API`; the individual "
"flag bits are guaranteed to be stable across Python releases, but access to "
":c:member:`~PyTypeObject.tp_flags` itself is not part of the limited API."
msgstr ""
"返回 *type* 的 :c:member:`~PyTypeObject.tp_flags` 成员。 此函数主要是配合 `Py_LIMITED_API`"
" 使用;单独的旗标位会确保在各个 Python 发行版之间保持稳定,但对 :c:member:`~PyTypeObject.tp_flags` "
"本身的访问并不是受限 API 的一部分。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:47
msgid "The return type is now ``unsigned long`` rather than ``long``."
msgstr "返回类型现在是 ``unsigned long`` 而不是 ``long``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:53
msgid ""
"Invalidate the internal lookup cache for the type and all of its subtypes. "
"This function must be called after any manual modification of the attributes"
" or base classes of the type."
msgstr "使该类型及其所有子类型的内部查找缓存失效。 此函数必须在对该类型的属性或基类进行任何手动修改之后调用。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:60
msgid ""
"Return true if the type object *o* sets the feature *feature*. Type "
"features are denoted by single bit flags."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:66
msgid ""
"Return true if the type object includes support for the cycle detector; this"
" tests the type flag :const:`Py_TPFLAGS_HAVE_GC`."
msgstr "如果类型对象包括对循环检测器的支持则返回真值;这会测试类型旗标 :const:`Py_TPFLAGS_HAVE_GC`。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:72
msgid "Return true if *a* is a subtype of *b*."
msgstr "如果 *a* 是 *b* 的子类型则返回真值。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:74
msgid ""
"This function only checks for actual subtypes, which means that "
":meth:`~class.__subclasscheck__` is not called on *b*. Call "
":c:func:`PyObject_IsSubclass` to do the same check that :func:`issubclass` "
"would do."
msgstr ""
"此函数只检查实际的子类型,这意味着 :meth:`~class.__subclasscheck__` 不会在 *b* 上被调用。 请调用 "
":c:func:`PyObject_IsSubclass` 来执行与 :func:`issubclass` 所做的相同检查。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:82
msgid ""
"Generic handler for the :c:member:`~PyTypeObject.tp_alloc` slot of a type "
"object. Use Python's default memory allocation mechanism to allocate a new "
"instance and initialize all its contents to ``NULL``."
msgstr ""
"类型对象的 :c:member:`~PyTypeObject.tp_alloc` 槽位的通用处理句柄。 请使用 Python "
"的默认内存分配机制来分配一个新的实例并将其所有内容初始化为 ``NULL``。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:88
msgid ""
"Generic handler for the :c:member:`~PyTypeObject.tp_new` slot of a type "
"object. Create a new instance using the type's "
":c:member:`~PyTypeObject.tp_alloc` slot."
msgstr ""
"类型对象的 :c:member:`~PyTypeObject.tp_new` 槽位的通用处理句柄。 请使用类型的 "
":c:member:`~PyTypeObject.tp_alloc` 槽位来创建一个新的实例。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:93
msgid ""
"Finalize a type object. This should be called on all type objects to finish"
" their initialization. This function is responsible for adding inherited "
"slots from a type's base class. Return ``0`` on success, or return ``-1`` "
"and sets an exception on error."
msgstr ""
"最终化一个类型对象。 这应当在所有类型对象上调用以完成它们的初始化。 此函数会负责从一个类型的基类添加被继承的槽位。 成功时返回 "
"``0``,或是在出错时返回 ``-1`` 并设置一个异常。"
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:100
msgid ""
"Creates and returns a heap type object from the *spec* passed to the "
"function."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:104
msgid ""
"Creates and returns a heap type object from the *spec*. In addition to that,"
" the created heap type contains all types contained by the *bases* tuple as "
"base types. This allows the caller to reference other heap types as base "
"types."
msgstr ""
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/type.rst:112
msgid ""
"Return the function pointer stored in the given slot. If the result is "
"``NULL``, this indicates that either the slot is ``NULL``, or that the "
"function was called with invalid parameters. Callers will typically cast the"
" result pointer into the appropriate function type."
msgstr ""
"返回存储在给定槽位中的函数指针。 如果结果为 ``NULL``,则表示或者该槽位为 ``NULL``,或者该函数调用传入了无效的形参。 "
"调用方通常要将结果指针转换到适当的函数类型。"