Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
sync with cpython 3d15c8b8
  • Loading branch information
github-actions[bot] authored and mattwang44 committed Jul 26, 2023
commit 3f6776acb8661f4a18ec49350d3fa7be31c52170
48 changes: 32 additions & 16 deletions library/multiprocessing.shared_memory.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Python 3.12\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
"POT-Creation-Date: 2023-07-26 00:03+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
Expand Down Expand Up @@ -212,63 +212,79 @@ msgstr ""
msgid ""
"Provides a mutable list-like object where all values stored within are "
"stored in a shared memory block. This constrains storable values to only "
"the ``int``, ``float``, ``bool``, ``str`` (less than 10M bytes each), "
"``bytes`` (less than 10M bytes each), and ``None`` built-in data types. It "
"also notably differs from the built-in ``list`` type in that these lists can "
"not change their overall length (i.e. no append, insert, etc.) and do not "
"support the dynamic creation of new :class:`ShareableList` instances via "
"slicing."
"the ``int`` (signed 64-bit), ``float``, ``bool``, ``str`` (less than 10M "
"bytes each when encoded as utf-8), ``bytes`` (less than 10M bytes each), and "
"``None`` built-in data types. It also notably differs from the built-in "
"``list`` type in that these lists can not change their overall length (i.e. "
"no append, insert, etc.) and do not support the dynamic creation of new :"
"class:`ShareableList` instances via slicing."
msgstr ""

#: ../../library/multiprocessing.shared_memory.rst:269
#: ../../library/multiprocessing.shared_memory.rst:270
msgid ""
"*sequence* is used in populating a new ``ShareableList`` full of values. Set "
"to ``None`` to instead attach to an already existing ``ShareableList`` by "
"its unique shared memory name."
msgstr ""

#: ../../library/multiprocessing.shared_memory.rst:273
#: ../../library/multiprocessing.shared_memory.rst:274
msgid ""
"*name* is the unique name for the requested shared memory, as described in "
"the definition for :class:`SharedMemory`. When attaching to an existing "
"``ShareableList``, specify its shared memory block's unique name while "
"leaving ``sequence`` set to ``None``."
msgstr ""

#: ../../library/multiprocessing.shared_memory.rst:280
#: ../../library/multiprocessing.shared_memory.rst:281
msgid ""
"A known issue exists for :class:`bytes` and :class:`str` values. If they end "
"with ``\\x00`` nul bytes or characters, those may be *silently stripped* "
"when fetching them by index from the :class:`ShareableList`. This ``."
"rstrip(b'\\x00')`` behavior is considered a bug and may go away in the "
"future. See :gh:`106939`."
msgstr ""

#: ../../library/multiprocessing.shared_memory.rst:287
msgid ""
"For applications where rstripping of trailing nulls is a problem, work "
"around it by always unconditionally appending an extra non-0 byte to the end "
"of such values when storing and unconditionally removing it when fetching:"
msgstr ""

#: ../../library/multiprocessing.shared_memory.rst:310
msgid "Returns the number of occurrences of ``value``."
msgstr ""

#: ../../library/multiprocessing.shared_memory.rst:284
#: ../../library/multiprocessing.shared_memory.rst:314
msgid ""
"Returns first index position of ``value``. Raises :exc:`ValueError` if "
"``value`` is not present."
msgstr ""

#: ../../library/multiprocessing.shared_memory.rst:289
#: ../../library/multiprocessing.shared_memory.rst:319
msgid ""
"Read-only attribute containing the :mod:`struct` packing format used by all "
"currently stored values."
msgstr ""

#: ../../library/multiprocessing.shared_memory.rst:294
#: ../../library/multiprocessing.shared_memory.rst:324
msgid "The :class:`SharedMemory` instance where the values are stored."
msgstr ""

#: ../../library/multiprocessing.shared_memory.rst:297
#: ../../library/multiprocessing.shared_memory.rst:327
msgid ""
"The following example demonstrates basic use of a :class:`ShareableList` "
"instance:"
msgstr ""

#: ../../library/multiprocessing.shared_memory.rst:330
#: ../../library/multiprocessing.shared_memory.rst:360
msgid ""
"The following example depicts how one, two, or many processes may access the "
"same :class:`ShareableList` by supplying the name of the shared memory block "
"behind it:"
msgstr ""

#: ../../library/multiprocessing.shared_memory.rst:345
#: ../../library/multiprocessing.shared_memory.rst:375
msgid ""
"The following examples demonstrates that ``ShareableList`` (and underlying "
"``SharedMemory``) objects can be pickled and unpickled if needed. Note, that "
Expand Down
Loading