File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 92.29 %" , "updated_at" : " 2023-11-17T23:55:55Z " }
1+ {"translation" : " 92.30 %" , "updated_at" : " 2023-11-18T01:19:04Z " }
Original file line number Diff line number Diff line change @@ -521,24 +521,28 @@ msgid ""
521521"Please refer to the the documentation of :c:macro:`Py_TPFLAGS_HAVE_GC` and "
522522":c:member:`~PyTypeObject.tp_traverse` for additional considerations."
523523msgstr ""
524+ "请参阅 :c:macro:`Py_TPFLAGS_HAVE_GC` 和 :c:member:`~PyTypeObject.tp_traverse` "
525+ "来了解对相关问题的更多考量。"
524526
525527#: ../../howto/isolating-extensions.rst:346
526528msgid ""
527529"The API for defining heap types grew organically, leaving it somewhat "
528530"awkward to use in its current state. The following sections will guide you "
529531"through common issues."
530- msgstr ""
532+ msgstr "定义堆类型的 API 在有机地增长,使得它目前的使用状况有些尴尬。 以下章节将引导您解决常见的问题。 "
531533
532534#: ../../howto/isolating-extensions.rst:352
533535msgid "``tp_traverse`` in Python 3.8 and lower"
534- msgstr ""
536+ msgstr "``tp_traverse`` 在 Python 3.8 及更低的版本中 "
535537
536538#: ../../howto/isolating-extensions.rst:354
537539msgid ""
538540"The requirement to visit the type from ``tp_traverse`` was added in Python "
539541"3.9. If you support Python 3.8 and lower, the traverse function must *not* "
540542"visit the type, so it must be more complicated::"
541543msgstr ""
544+ "从``tp_traverse`` 访问类型的要求是在 Python 3.9 中添加的。 如果你要支持 Python 3.8 及更低版本,则遍历函数 "
545+ "*不可* 访问类型,因此必须使用更复杂的方式::"
542546
543547#: ../../howto/isolating-extensions.rst:366
544548msgid ""
Original file line number Diff line number Diff line change @@ -5721,6 +5721,10 @@ msgid ""
57215721" any iterable as the other operand, unlike sets which only accept sets as "
57225722"the input."
57235723msgstr ""
5724+ "键视图与集合类似因为其条目是唯一的并且为 :term:`hashable`。 条视图也有类似集合的操作因为 (键, 值) 对是唯一的并且键是可哈希的。 "
5725+ "如果条目视图中的所有值也都是可哈希的,那么条目视图就可以与其他集合执行互操作。 (值视图不会被认为与集合类似因为条目通常不是唯一的)。 "
5726+ "对于与集合类似的视图,可以使用为抽象基类 :class:`collections.abc.Set` 定义的所有操作(例如,``==``, ``<`` 或"
5727+ " ``^`` 等)。 虽然使用了集合运算符,但与集合类似的视图接受任何可迭代对象作为其操作数,而不像集合那样只接受集合作为输入。"
57245728
57255729#: ../../library/stdtypes.rst:4767
57265730msgid "An example of dictionary view usage::"
You can’t perform that action at this time.
0 commit comments