Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07e7f20

Browse files
[po] auto sync
1 parent a3db074 commit 07e7f20

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

library/multiprocessing.shared_memory.po

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,17 @@ msgid ""
238238
" to ensure that all shared memory blocks are released after they are no "
239239
"longer needed:"
240240
msgstr ""
241+
"以下案例展示了 :class:`SharedMemoryManager` 对象的一种可能更方便的使用方式,通过 :keyword:`with` "
242+
"语句来保证所有共享内存块在使用完后被释放。"
241243

242244
#: ../../library/multiprocessing.shared_memory.rst:253
243245
msgid ""
244246
"When using a :class:`SharedMemoryManager` in a :keyword:`with` statement, "
245247
"the shared memory blocks created using that manager are all released when "
246248
"the :keyword:`with` statement's code block finishes execution."
247249
msgstr ""
250+
"在 :keyword:`with` 语句中使用 :class:`SharedMemoryManager`  "
251+
"对象的时候,使用这个管理器创建的共享内存块会在 :keyword:`with` 语句代码块结束后被释放。"
248252

249253
#: ../../library/multiprocessing.shared_memory.rst:260
250254
msgid ""
@@ -257,6 +261,10 @@ msgid ""
257261
"support the dynamic creation of new :class:`ShareableList` instances via "
258262
"slicing."
259263
msgstr ""
264+
"提供一个可修改的类 list 对象,其中所有值都存放在共享内存块中。这限制了可被存储在其中的值只能是 ``int``, ``float``, "
265+
"``bool``, ``str`` (每条数据小于10M), ``bytes`` (每条数据小于10M)以及 ``None`` "
266+
"这些内置类型。它另一个显著区别于内置 ``list`` 类型的地方在于它的长度无法修改(比如,没有 append, insert "
267+
"等操作)且不支持通过切片操作动态创建新的 :class:`ShareableList`  实例。"
260268

261269
#: ../../library/multiprocessing.shared_memory.rst:269
262270
msgid ""

0 commit comments

Comments
 (0)