GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — python-docs-ja/c-api/list.po at 3.14 · python/python-docs-ja Expand file tree/ Copy pathlist.poMore file actions 351 lines (313 loc) · 15.6 KB / Copy pathlist.poFile metadata and controls351 lines (313 loc) · 15.6 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 # SOME DESCRIPTIVE TITLE. # Copyright (C) 2001 Python Software Foundation # This file is distributed under the same license as the Python package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # # Translators: # python-doc bot, 2025 # #, fuzzy msgid "" msgstr "" "Project-Id-Version: Python 3.15\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2026-10-13 19:59+0000\n" "PO-Revision-Date: 2025-09-16 00:00+0000\n" "Last-Translator: python-doc bot, 2025\n" "Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/" "ja/)\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" #: ../../c-api/list.rst:6 msgid "List Objects" msgstr "リストオブジェクト" #: ../../c-api/list.rst:13 msgid "This subtype of :c:type:`PyObject` represents a Python list object." msgstr "" "この :c:type:`PyObject` のサブタイプは Python のリストオブジェクトを表現しま" "す。" #: ../../c-api/list.rst:18 msgid "" "This instance of :c:type:`PyTypeObject` represents the Python list type. " "This is the same object as :class:`list` in the Python layer." msgstr "" "この :c:type:`PyTypeObject` のインスタンスは Python のリスト型を表現します。" "これは Python レイヤにおける :class:`list` と同じオブジェクトです。" #: ../../c-api/list.rst:24 msgid "" "Return true if *p* is a list object or an instance of a subtype of the list " "type. This function always succeeds." msgstr "" "*p* がリストオブジェクトかリスト型のサブタイプのインスタンスである場合に真を" "返します。この関数は常に成功します。" #: ../../c-api/list.rst:30 msgid "" "Return true if *p* is a list object, but not an instance of a subtype of the " "list type. This function always succeeds." msgstr "" "*p* がリストオブジェクトだがリスト型のサブタイプのインスタンスでない場合に真" "を返します。この関数は常に成功します。" #: ../../c-api/list.rst:36 msgid "Return a new list of length *len* on success, or ``NULL`` on failure." msgstr "" "サイズが *len* 新たなリストオブジェクトを返します。\n" "失敗すると ``NULL`` を返します。" msgid "" "If *len* is greater than zero, the returned list object's items are set to " "``NULL``. Thus you cannot use abstract API functions such " "as :c:func:`PySequence_SetItem` or expose the object to Python code before " "setting all items to a real object with :c:func:`PyList_SetItem` " "or :c:func:`PyList_SET_ITEM()`. The following APIs are safe APIs before the " "list is fully initialized: :c:func:`PyList_SetItem()` " "and :c:func:`PyList_SET_ITEM()`." msgstr "" "*len* がゼロより大きい場合、返されたリストの要素は ``NULL`` に設定されていま" "す。\n" "そのため、:c:func:`PyList_SetItem` や :c:func:`PyList_SET_ITEM()` ですべての" "要素に実際のオブジェクトを設定するまでは、:c:func:`PySequence_SetItem` などの" "抽象 API 関数を使ったり、このオブジェクトを Python コードに公開したりしてはな" "りません。\n" "リストを完全に初期化する前でも安全に使える API は :c:func:`PyList_SetItem()` " "と :c:func:`PyList_SET_ITEM()` です。" #: ../../c-api/list.rst:53 msgid "" "Return the length of the list object in *list*; this is equivalent to " "``len(list)`` on a list object." msgstr "" "リストオブジェクト *list* の長さを返します; リストオブジェクトにおける " "``len(list)`` と同じです。" #: ../../c-api/list.rst:59 msgid "Similar to :c:func:`PyList_Size`, but without error checking." msgstr ":c:func:`PyList_Size` に似ていますが、エラーチェックを行いません。" msgid "" "Return the object at position *index* in the list pointed to by *list*. The " "position must be non-negative; indexing from the end of the list is not " "supported. If *index* is out of bounds (:code:`<0 or >=len(list)`), return " "``NULL`` and set an :exc:`IndexError` exception." msgstr "" "*list* が指すリストの位置 *index* にあるオブジェクトを返します。\n" "位置は非負でなければならず、リストの末尾からのインデックス指定はサポートしま" "せん。\n" "*index* が範囲外 (:code:`<0 or >=len(list)`) の場合、:exc:`IndexError` を設定" "して ``NULL`` を返します。" msgid "" "Like :c:func:`PyList_GetItemRef`, but returns a :term:`borrowed reference` " "instead of a :term:`strong reference`." msgstr "" ":c:func:`PyList_GetItemRef` と似ていますが、:term:`強参照 <strong " "reference>` ではなく :term:`借用参照 <borrowed reference>` を返します。" msgid "" "In the :term:`free-threaded build`, the returned :term:`borrowed reference` " "may become invalid if another thread modifies the list concurrently. " "Prefer :c:func:`PyList_GetItemRef`, which returns a :term:`strong reference`." msgstr "" ":term:`フリースレッドビルド <free-threaded build>` では、別のスレッドが同時に" "リストを変更すると、返された :term:`借用参照 <borrowed reference>` が無効にな" "る可能性があります。\n" ":term:`強参照 <strong reference>` を返す :c:func:`PyList_GetItemRef` を使って" "ください。" #: ../../c-api/list.rst:87 msgid "Similar to :c:func:`PyList_GetItem`, but without error checking." msgstr ":c:func:`PyList_GetItem` に似ていますが、エラーチェックを行いません。" msgid "" "Set the item at index *index* in list to *item*. Return ``0`` on success. " "If *index* is out of bounds, return ``-1`` and set an :exc:`IndexError` " "exception." msgstr "" "リストのインデックス *index* にある要素を *item* に設定します。\n" "成功すると ``0`` を返します。\n" "*index* が範囲外の場合は、:exc:`IndexError` を設定して ``-1`` を返します。" msgid "" "This function \":term:`steals <steal>`\" a reference to *item*, even on " "error. On success, it discards a reference to an item already in the list at " "the affected position (unless it was ``NULL``)." msgstr "" "この関数は、エラーの場合も *item* への参照を「:term:`盗みます <steal>`」。\n" "成功すると、リストの指定位置にすでにあった要素が ``NULL`` でない限り、その要" "素への参照を破棄します。" #: ../../c-api/list.rst:113 msgid "" "Macro form of :c:func:`PyList_SetItem` without error checking. This is " "normally only used to fill in new lists where there is no previous content." msgstr "" ":c:func:`PyList_SetItem` をマクロによる実装で、エラーチェックを行いません。こ" "のマクロは、新たなリストのまだ要素を入れたことのない位置に要素を入れるときに" "のみ使います。" msgid "" "Bounds checking is performed as an assertion if Python is built " "in :ref:`debug mode <debug-build>` or :option:`with assertions <--with-" "assertions>`." msgstr "" "Python を :ref:`デバッグモード <debug-build>` または :option:`アサーションを" "有効にして <--with-assertions>` ビルドした場合、アサーションによる境界チェッ" "クが行われます。" msgid "" "This macro \":term:`steals <steal>`\" a reference to *item*, and, " "unlike :c:func:`PyList_SetItem`, does *not* discard a reference to any item " "that is being replaced; any reference in *list* at position *i* will be " "leaked." msgstr "" "このマクロは *item* への参照を「:term:`盗みます <steal>`」。\n" ":c:func:`PyList_SetItem` とは異なり、置き換える要素への参照は破棄 *しません" "*。\n" "*list* の位置 *i* にある参照はリークします。" msgid "" "In the :term:`free-threaded build`, this macro has no internal " "synchronization. It is normally only used to fill in new lists where no " "other thread has a reference to the list. If the list may be shared, " "use :c:func:`PyList_SetItem` instead, which uses a :term:`per-object lock`." msgstr "" ":term:`フリースレッドビルド <free-threaded build>` では、このマクロは内部で同" "期しません。\n" "通常は、他のスレッドが参照を持っていない新しいリストに要素を設定するためにだ" "け使います。\n" "リストが共有される可能性がある場合は、代わりに :term:`オブジェクトごとのロッ" "ク <per-object lock>` を使う :c:func:`PyList_SetItem` を使ってください。" #: ../../c-api/list.rst:138 msgid "" "Insert the item *item* into list *list* in front of index *index*. Return " "``0`` if successful; return ``-1`` and set an exception if unsuccessful. " "Analogous to ``list.insert(index, item)``." msgstr "" "要素 *item* をリスト *list* のインデックス *index* の前に挿入します。成功する" "と ``0`` を返します。失敗すると ``-1`` を返し、例外をセットします。" "``list.insert(index, item)`` に類似した機能です。" #: ../../c-api/list.rst:145 msgid "" "Append the object *item* at the end of list *list*. Return ``0`` if " "successful; return ``-1`` and set an exception if unsuccessful. Analogous " "to ``list.append(item)``." msgstr "" "オブジェクト *item* を *list* の末尾に追加します。成功すると ``0`` を返しま" "す; 失敗すると ``-1`` を返し、例外をセットします。``list.append(item)`` に類" "似した機能です。" #: ../../c-api/list.rst:152 msgid "" "Return a list of the objects in *list* containing the objects *between* " "*low* and *high*. Return ``NULL`` and set an exception if unsuccessful. " "Analogous to ``list[low:high]``. Indexing from the end of the list is not " "supported." msgstr "" "*list* 内の、*low* から *high* *までの* オブジェクトからなるリストを返しま" "す。\n" "失敗すると ``NULL`` を返し、例外をセットします。\n" "``list[low:high]`` に類似した機能です。\n" "ただし、リストの末尾からのインデックスはサポートされていません。" #: ../../c-api/list.rst:159 msgid "" "Set the slice of *list* between *low* and *high* to the contents of " "*itemlist*. Analogous to ``list[low:high] = itemlist``. The *itemlist* may " "be ``NULL``, indicating the assignment of an empty list (slice deletion). " "Return ``0`` on success, ``-1`` on failure. Indexing from the end of the " "list is not supported." msgstr "" "*low* から *high* までの *list* のスライスを、 *itemlist* の内容にします。\n" "``list[low:high] = itemlist`` と類似の機能です。\n" "*itemlist* は ``NULL`` でもよく、空リストの代入 (指定スライスの削除) になりま" "す。\n" "成功した場合には ``0`` を、失敗した場合には ``-1`` を返します。\n" "ただし、リストの末尾からのインデックスはサポートされていません。" msgid "" "In the :term:`free-threaded build`, when *itemlist* is a :class:`list`, both " "*list* and *itemlist* are locked for the duration of the operation. For " "other iterables (or ``NULL``), only *list* is locked." msgstr "" ":term:`フリースレッドビルド <free-threaded build>` では、*itemlist* " "が :class:`list` の場合、操作中は *list* と *itemlist* の両方をロックしま" "す。\n" "他のイテラブル (または ``NULL``) の場合は、*list* だけをロックします。" msgid "" "Extend *list* with the contents of *iterable*. This is the same as " "``PyList_SetSlice(list, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX, iterable)`` and " "analogous to ``list.extend(iterable)`` or ``list += iterable``." msgstr "" "*iterable* の内容を *list* の末尾に追加します。\n" "``PyList_SetSlice(list, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX, iterable)`` と同じ" "で、``list.extend(iterable)`` や ``list += iterable`` に相当します。" msgid "" "Raise an exception and return ``-1`` if *list* is not a :class:`list` " "object. Return 0 on success." msgstr "" "*list* が :class:`list` オブジェクトでなければ、例外を送出して ``-1`` を返し" "ます。\n" "成功すると 0 を返します。" msgid "" "In the :term:`free-threaded build`, when *iterable* is " "a :class:`list`, :class:`set`, :class:`dict`, or dict view, both *list* and " "*iterable* (or its underlying dict) are locked for the duration of the " "operation. For other iterables, only *list* is locked; *iterable* may be " "concurrently modified by another thread." msgstr "" ":term:`フリースレッドビルド <free-threaded build>` では、*iterable* " "が :class:`list`、:class:`set`、:class:`dict`、または辞書ビューの場合、操作中" "は *list* と *iterable* (辞書ビューの場合はその元の辞書) の両方をロックしま" "す。\n" "他のイテラブルの場合は *list* だけをロックするため、別のスレッドが同時に " "*iterable* を変更する可能性があります。" msgid "" "Remove all items from *list*. This is the same as ``PyList_SetSlice(list, " "0, PY_SSIZE_T_MAX, NULL)`` and analogous to ``list.clear()`` or ``del " "list[:]``." msgstr "" "*list* のすべての要素を削除します。\n" "``PyList_SetSlice(list, 0, PY_SSIZE_T_MAX, NULL)`` と同じで、" "``list.clear()`` や ``del list[:]`` に相当します。" msgid "" "Raise an exception and return ``-1`` if *list* is not a :class:`list` " "object. Return 0 on success." msgstr "" "*list* が :class:`list` オブジェクトでなければ、例外を送出して ``-1`` を返し" "ます。\n" "成功すると 0 を返します。" #: ../../c-api/list.rst:206 msgid "" "Sort the items of *list* in place. Return ``0`` on success, ``-1`` on " "failure. This is equivalent to ``list.sort()``." msgstr "" "*list* の内容をインプレースでソートします。成功した場合には ``0`` を、失敗し" "た場合には ``-1`` を返します。``list.sort()`` と同じです。" msgid "" "In the :term:`free-threaded build`, element comparison " "via :meth:`~object.__lt__` can execute arbitrary Python code, during which " "the :term:`per-object lock` may be temporarily released. For built-in types " "(:class:`str`, :class:`int`, :class:`float`), the lock is not released " "during comparison." msgstr "" ":term:`フリースレッドビルド <free-threaded build>` で" "は、:meth:`~object.__lt__` による要素の比較で任意の Python コードが実行される" "ことがあり、その間は :term:`オブジェクトごとのロック <per-object lock>` が一" "時的に解放される場合があります。\n" "組み込み型 (:class:`str`、:class:`int`、:class:`float`) の比較中は、ロックを" "解放しません。" #: ../../c-api/list.rst:220 msgid "" "Reverse the items of *list* in place. Return ``0`` on success, ``-1`` on " "failure. This is the equivalent of ``list.reverse()``." msgstr "" "*list* の要素をインプレースで反転します。成功した場合には ``0`` を、失敗した" "場合には ``-1`` を返します。``list.reverse()`` と同じです。" #: ../../c-api/list.rst:228 msgid "" "Return a new tuple object containing the contents of *list*; equivalent to " "``tuple(list)``." msgstr "" "*list* の内容が入った新たなタプルオブジェクトを返します; ``tuple(list)`` と同" "じです。" #: ../../c-api/list.rst:8 msgid "object" msgstr "object" #: ../../c-api/list.rst:8 msgid "list" msgstr "list" #: ../../c-api/list.rst:51 ../../c-api/list.rst:226 msgid "built-in function" msgstr "組み込み関数" #: ../../c-api/list.rst:51 msgid "len" msgstr "len" #: ../../c-api/list.rst:226 msgid "tuple" msgstr "tuple" |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |