File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -904,10 +904,11 @@ msgid ""
904904"the I/O buffer is allocated from the Python heap by using the first function"
905905" set::"
906906msgstr ""
907+ "以下是来自 :ref:`memoryoverview` 小节的示例,经过重写以使 I/O 缓冲区是通过使用第一个函数集从 Python 堆中分配的::"
907908
908909#: ../../c-api/memory.rst:571
909910msgid "The same code using the type-oriented function set::"
910- msgstr ""
911+ msgstr "使用面向类型函数集的相同代码:: "
911912
912913#: ../../c-api/memory.rst:583
913914msgid ""
@@ -918,6 +919,9 @@ msgid ""
918919"contains two errors, one of which is labeled as *fatal* because it mixes two"
919920" different allocators operating on different heaps. ::"
920921msgstr ""
922+ "请注意在以上两个示例中,缓冲区总是通过归属于相同集的函数来操纵的。 事实上,对于一个给定的内存块必须使用相同的内存 API "
923+ "族,以便使得混合不同分配器的风险减至最低。 以下代码序列包含两处错误,其中一个被标记为 *fatal* 因为它混合了两种在不同堆上操作的不同分配器。 "
924+ "::"
921925
922926#: ../../c-api/memory.rst:598
923927msgid ""
@@ -926,9 +930,11 @@ msgid ""
926930":c:func:`PyObject_New`, :c:func:`PyObject_NewVar` and "
927931":c:func:`PyObject_Del`."
928932msgstr ""
933+ "除了旨在处理来自 Python 堆的原始内存块的函数之外, Python 中的对象是通过 :c:func:`PyObject_New`, "
934+ ":c:func:`PyObject_NewVar` 和 :c:func:`PyObject_Del` 来分配和释放的。"
929935
930936#: ../../c-api/memory.rst:602
931937msgid ""
932938"These will be explained in the next chapter on defining and implementing new"
933939" object types in C."
934- msgstr ""
940+ msgstr "这些将在有关如何在 C 中定义和实现新对象类型的下一章中讲解。 "
You can’t perform that action at this time.
0 commit comments