7
7
msgstr ""
8
8
"Project-Id-Version : Python 3.10\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
- "POT-Creation-Date : 2021-10-26 16:47 +0000\n "
10
+ "POT-Creation-Date : 2021-10-29 00:08 +0000\n "
11
11
"PO-Revision-Date : 2018-05-23 14:31+0000\n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -64,14 +64,31 @@ msgid ""
64
64
"initialized, it must call :c:func:`PyObject_GC_Track`."
65
65
msgstr ""
66
66
67
- #: ../../c-api/gcsupport.rst:37
67
+ #: ../../c-api/gcsupport.rst:36
68
+ msgid ""
69
+ "Similarly, the deallocator for the object must conform to a similar pair of "
70
+ "rules:"
71
+ msgstr ""
72
+
73
+ #: ../../c-api/gcsupport.rst:39
74
+ msgid ""
75
+ "Before fields which refer to other containers are invalidated, :c:func:"
76
+ "`PyObject_GC_UnTrack` must be called."
77
+ msgstr ""
78
+
79
+ #: ../../c-api/gcsupport.rst:42
80
+ msgid ""
81
+ "The object's memory must be deallocated using :c:func:`PyObject_GC_Del`."
82
+ msgstr ""
83
+
84
+ #: ../../c-api/gcsupport.rst:45
68
85
msgid ""
69
86
"If a type adds the Py_TPFLAGS_HAVE_GC, then it *must* implement at least a :"
70
87
"c:member:`~PyTypeObject.tp_traverse` handler or explicitly use one from its "
71
88
"subclass or subclasses."
72
89
msgstr ""
73
90
74
- #: ../../c-api/gcsupport.rst:41
91
+ #: ../../c-api/gcsupport.rst:49
75
92
msgid ""
76
93
"When calling :c:func:`PyType_Ready` or some of the APIs that indirectly call "
77
94
"it like :c:func:`PyType_FromSpecWithBases` or :c:func:`PyType_FromSpec` the "
@@ -82,26 +99,26 @@ msgid ""
82
99
"include the :const:`Py_TPFLAGS_HAVE_GC` flag."
83
100
msgstr ""
84
101
85
- #: ../../c-api/gcsupport.rst:51
102
+ #: ../../c-api/gcsupport.rst:59
86
103
msgid ""
87
104
"Analogous to :c:func:`PyObject_New` but for container objects with the :"
88
105
"const:`Py_TPFLAGS_HAVE_GC` flag set."
89
106
msgstr ""
90
107
91
- #: ../../c-api/gcsupport.rst:57
108
+ #: ../../c-api/gcsupport.rst:65
92
109
msgid ""
93
110
"Analogous to :c:func:`PyObject_NewVar` but for container objects with the :"
94
111
"const:`Py_TPFLAGS_HAVE_GC` flag set."
95
112
msgstr ""
96
113
97
- #: ../../c-api/gcsupport.rst:63
114
+ #: ../../c-api/gcsupport.rst:71
98
115
msgid ""
99
116
"Resize an object allocated by :c:func:`PyObject_NewVar`. Returns the "
100
117
"resized object or ``NULL`` on failure. *op* must not be tracked by the "
101
118
"collector yet."
102
119
msgstr ""
103
120
104
- #: ../../c-api/gcsupport.rst:69
121
+ #: ../../c-api/gcsupport.rst:77
105
122
msgid ""
106
123
"Adds the object *op* to the set of container objects tracked by the "
107
124
"collector. The collector can run at unexpected times so objects must be "
@@ -110,55 +127,38 @@ msgid ""
110
127
"usually near the end of the constructor."
111
128
msgstr ""
112
129
113
- #: ../../c-api/gcsupport.rst:78
130
+ #: ../../c-api/gcsupport.rst:86
114
131
msgid ""
115
132
"Returns non-zero if the object implements the garbage collector protocol, "
116
133
"otherwise returns 0."
117
134
msgstr ""
118
135
119
- #: ../../c-api/gcsupport.rst:81
136
+ #: ../../c-api/gcsupport.rst:89
120
137
msgid ""
121
138
"The object cannot be tracked by the garbage collector if this function "
122
139
"returns 0."
123
140
msgstr ""
124
141
125
- #: ../../c-api/gcsupport.rst:86
142
+ #: ../../c-api/gcsupport.rst:94
126
143
msgid ""
127
144
"Returns 1 if the object type of *op* implements the GC protocol and *op* is "
128
145
"being currently tracked by the garbage collector and 0 otherwise."
129
146
msgstr ""
130
147
131
- #: ../../c-api/gcsupport.rst:89
148
+ #: ../../c-api/gcsupport.rst:97
132
149
msgid "This is analogous to the Python function :func:`gc.is_tracked`."
133
150
msgstr ""
134
151
135
- #: ../../c-api/gcsupport.rst:96
152
+ #: ../../c-api/gcsupport.rst:104
136
153
msgid ""
137
154
"Returns 1 if the object type of *op* implements the GC protocol and *op* has "
138
155
"been already finalized by the garbage collector and 0 otherwise."
139
156
msgstr ""
140
157
141
- #: ../../c-api/gcsupport.rst:99
158
+ #: ../../c-api/gcsupport.rst:107
142
159
msgid "This is analogous to the Python function :func:`gc.is_finalized`."
143
160
msgstr ""
144
161
145
- #: ../../c-api/gcsupport.rst:103
146
- msgid ""
147
- "Similarly, the deallocator for the object must conform to a similar pair of "
148
- "rules:"
149
- msgstr ""
150
-
151
- #: ../../c-api/gcsupport.rst:106
152
- msgid ""
153
- "Before fields which refer to other containers are invalidated, :c:func:"
154
- "`PyObject_GC_UnTrack` must be called."
155
- msgstr ""
156
-
157
- #: ../../c-api/gcsupport.rst:109
158
- msgid ""
159
- "The object's memory must be deallocated using :c:func:`PyObject_GC_Del`."
160
- msgstr ""
161
-
162
162
#: ../../c-api/gcsupport.rst:114
163
163
msgid ""
164
164
"Releases memory allocated to an object using :c:func:`PyObject_GC_New` or :c:"
0 commit comments