@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.9\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2020-09-05 04:00 +0000\n "
16+ "POT-Creation-Date : 2020-12-21 04:56 +0000\n "
1717"PO-Revision-Date : 2017-02-16 17:39+0000\n "
1818"
Last-Translator :
Jo Jiang <[email protected] >, 2020\n "
1919"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -194,11 +194,12 @@ msgstr ""
194194
195195#: ../../c-api/type.rst:158
196196msgid ""
197- "If *bases* is ``NULL``, the *Py_tp_base* slot is used instead. If that also "
198- "is ``NULL``, the new type derives from :class:`object`."
197+ "If *bases* is ``NULL``, the *Py_tp_bases* slot is used instead. If that also"
198+ " is ``NULL``, the *Py_tp_base* slot is used instead. If that also is "
199+ "``NULL``, the new type derives from :class:`object`."
199200msgstr ""
200201
201- #: ../../c-api/type.rst:161
202+ #: ../../c-api/type.rst:162
202203msgid ""
203204"The *module* argument can be used to record the module in which the new "
204205"class is defined. It must be a module object or ``NULL``. If not ``NULL``, "
@@ -207,158 +208,158 @@ msgid ""
207208"subclasses; it must be specified for each class individually."
208209msgstr ""
209210
210- #: ../../c-api/type.rst:168
211+ #: ../../c-api/type.rst:169
211212msgid "This function calls :c:func:`PyType_Ready` on the new type."
212213msgstr ""
213214
214- #: ../../c-api/type.rst:174
215+ #: ../../c-api/type.rst:175
215216msgid "Equivalent to ``PyType_FromModuleAndSpec(NULL, spec, bases)``."
216217msgstr ""
217218
218- #: ../../c-api/type.rst:180
219+ #: ../../c-api/type.rst:181
219220msgid "Equivalent to ``PyType_FromSpecWithBases(spec, NULL)``."
220221msgstr ""
221222
222- #: ../../c-api/type.rst:184
223+ #: ../../c-api/type.rst:185
223224msgid "Structure defining a type's behavior."
224225msgstr ""
225226
226- #: ../../c-api/type.rst:188
227+ #: ../../c-api/type.rst:189
227228msgid "Name of the type, used to set :c:member:`PyTypeObject.tp_name`."
228229msgstr ""
229230
230- #: ../../c-api/type.rst:193
231+ #: ../../c-api/type.rst:194
231232msgid ""
232233"Size of the instance in bytes, used to set "
233234":c:member:`PyTypeObject.tp_basicsize` and "
234235":c:member:`PyTypeObject.tp_itemsize`."
235236msgstr ""
236237
237- #: ../../c-api/type.rst:199
238+ #: ../../c-api/type.rst:200
238239msgid "Type flags, used to set :c:member:`PyTypeObject.tp_flags`."
239240msgstr ""
240241
241- #: ../../c-api/type.rst:201
242+ #: ../../c-api/type.rst:202
242243msgid ""
243244"If the ``Py_TPFLAGS_HEAPTYPE`` flag is not set, "
244245":c:func:`PyType_FromSpecWithBases` sets it automatically."
245246msgstr ""
246247
247- #: ../../c-api/type.rst:206
248+ #: ../../c-api/type.rst:207
248249msgid ""
249250"Array of :c:type:`PyType_Slot` structures. Terminated by the special slot "
250251"value ``{0, NULL}``."
251252msgstr ""
252253
253- #: ../../c-api/type.rst:211
254+ #: ../../c-api/type.rst:212
254255msgid ""
255256"Structure defining optional functionality of a type, containing a slot ID "
256257"and a value pointer."
257258msgstr ""
258259
259- #: ../../c-api/type.rst:216
260+ #: ../../c-api/type.rst:217
260261msgid "A slot ID."
261262msgstr ""
262263
263- #: ../../c-api/type.rst:218
264+ #: ../../c-api/type.rst:219
264265msgid ""
265266"Slot IDs are named like the field names of the structures "
266267":c:type:`PyTypeObject`, :c:type:`PyNumberMethods`, "
267268":c:type:`PySequenceMethods`, :c:type:`PyMappingMethods` and "
268269":c:type:`PyAsyncMethods` with an added ``Py_`` prefix. For example, use:"
269270msgstr ""
270271
271- #: ../../c-api/type.rst:224
272+ #: ../../c-api/type.rst:225
272273msgid "``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`"
273274msgstr ""
274275
275- #: ../../c-api/type.rst:225
276+ #: ../../c-api/type.rst:226
276277msgid "``Py_nb_add`` to set :c:member:`PyNumberMethods.nb_add`"
277278msgstr ""
278279
279- #: ../../c-api/type.rst:226
280+ #: ../../c-api/type.rst:227
280281msgid "``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`"
281282msgstr ""
282283
283- #: ../../c-api/type.rst:228
284+ #: ../../c-api/type.rst:229
284285msgid ""
285286"The following fields cannot be set at all using :c:type:`PyType_Spec` and "
286287":c:type:`PyType_Slot`:"
287288msgstr ""
288289
289- #: ../../c-api/type.rst:231
290+ #: ../../c-api/type.rst:232
290291msgid ":c:member:`~PyTypeObject.tp_dict`"
291292msgstr ":c:member:`~PyTypeObject.tp_dict`"
292293
293- #: ../../c-api/type.rst:232
294+ #: ../../c-api/type.rst:233
294295msgid ":c:member:`~PyTypeObject.tp_mro`"
295296msgstr ""
296297
297- #: ../../c-api/type.rst:233
298+ #: ../../c-api/type.rst:234
298299msgid ":c:member:`~PyTypeObject.tp_cache`"
299300msgstr ""
300301
301- #: ../../c-api/type.rst:234
302+ #: ../../c-api/type.rst:235
302303msgid ":c:member:`~PyTypeObject.tp_subclasses`"
303304msgstr ""
304305
305- #: ../../c-api/type.rst:235
306+ #: ../../c-api/type.rst:236
306307msgid ":c:member:`~PyTypeObject.tp_weaklist`"
307308msgstr ""
308309
309- #: ../../c-api/type.rst:236
310+ #: ../../c-api/type.rst:237
310311msgid ":c:member:`~PyTypeObject.tp_vectorcall`"
311312msgstr ""
312313
313- #: ../../c-api/type.rst:237
314+ #: ../../c-api/type.rst:238
314315msgid ""
315316":c:member:`~PyTypeObject.tp_weaklistoffset` (see :ref:`PyMemberDef "
316317"<pymemberdef-offsets>`)"
317318msgstr ""
318319
319- #: ../../c-api/type.rst:239
320+ #: ../../c-api/type.rst:240
320321msgid ""
321322":c:member:`~PyTypeObject.tp_dictoffset` (see :ref:`PyMemberDef <pymemberdef-"
322323"offsets>`)"
323324msgstr ""
324325
325- #: ../../c-api/type.rst:241
326+ #: ../../c-api/type.rst:242
326327msgid ""
327328":c:member:`~PyTypeObject.tp_vectorcall_offset` (see :ref:`PyMemberDef "
328329"<pymemberdef-offsets>`)"
329330msgstr ""
330331
331- #: ../../c-api/type.rst:244
332+ #: ../../c-api/type.rst:245
332333msgid ""
333334"The following fields cannot be set using :c:type:`PyType_Spec` and "
334335":c:type:`PyType_Slot` under the limited API:"
335336msgstr ""
336337
337- #: ../../c-api/type.rst:247
338+ #: ../../c-api/type.rst:248
338339msgid ":c:member:`~PyBufferProcs.bf_getbuffer`"
339340msgstr ":c:member:`~PyBufferProcs.bf_getbuffer`"
340341
341- #: ../../c-api/type.rst:248
342+ #: ../../c-api/type.rst:249
342343msgid ":c:member:`~PyBufferProcs.bf_releasebuffer`"
343344msgstr ":c:member:`~PyBufferProcs.bf_releasebuffer`"
344345
345- #: ../../c-api/type.rst:250
346+ #: ../../c-api/type.rst:251
346347msgid ""
347- "Setting :c:data:`Py_tp_bases` may be problematic on some platforms. To avoid "
348- " issues, use the *bases* argument of :py:func:`PyType_FromSpecWithBases` "
349- "instead."
348+ "Setting :c:data:`Py_tp_bases` or :c:data:`Py_tp_base` may be problematic on "
349+ "some platforms. To avoid issues, use the *bases* argument of "
350+ ":py:func:`PyType_FromSpecWithBases` instead."
350351msgstr ""
351352
352- #: ../../c-api/type.rst:256
353+ #: ../../c-api/type.rst:258
353354msgid "Slots in :c:type:`PyBufferProcs` in may be set in the unlimited API."
354355msgstr ""
355356
356- #: ../../c-api/type.rst:260
357+ #: ../../c-api/type.rst:262
357358msgid ""
358359"The desired value of the slot. In most cases, this is a pointer to a "
359360"function."
360361msgstr ""
361362
362- #: ../../c-api/type.rst:263
363+ #: ../../c-api/type.rst:265
363364msgid "May not be ``NULL``."
364365msgstr ""
0 commit comments