Skip to content

Commit 34778d1

Browse files
author
github-actions
committed
Merge 3.14 into 3.12
1 parent caaee4e commit 34778d1

File tree

5 files changed

+97
-2
lines changed

5 files changed

+97
-2
lines changed

library/bisect.po

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ msgid ""
115115
"Similar to :py:func:`~bisect.bisect_left`, but returns an insertion point "
116116
"which comes after (to the right of) any existing entries of *x* in *a*."
117117
msgstr ""
118+
":py:func:`~bisect.bisect_left` と似ていますが、 *a* に含まれる *x* のうち、ど"
119+
"のエントリーよりも後ろ(右)にくるような挿入点を返します。"
118120

119121
#: ../../library/bisect.rst:63
120122
msgid ""
@@ -123,6 +125,9 @@ msgid ""
123125
"slice and ``all(elem > x for elem in a[ip : hi])`` is true for the right "
124126
"slice."
125127
msgstr ""
128+
"返された挿入点 *ip* パーティションは、左のスライスでは ``all(elem <= x for "
129+
"elem in a[lo : ip])`` が真となり、右のスライスでは ``all(elem > x for elem "
130+
"in a[ip : hi])`` が真となるように、配列 *a* を2つのスライスに分割します。"
126131

127132
#: ../../library/bisect.rst:73
128133
msgid "Insert *x* in *a* in sorted order."
@@ -152,6 +157,8 @@ msgid ""
152157
"Similar to :py:func:`~bisect.insort_left`, but inserting *x* in *a* after "
153158
"any existing entries of *x*."
154159
msgstr ""
160+
":py:func:`~bisect.insort_left` と似ていますが、 *a* に含まれる *x* のうち、ど"
161+
"のエントリーよりも後ろに *x* を挿入します。"
155162

156163
#: ../../library/bisect.rst:95
157164
msgid ""
@@ -315,6 +322,10 @@ msgid ""
315322
"grade for an exam score (say) based on a set of ordered numeric breakpoints: "
316323
"90 and up is an 'A', 80 to 89 is a 'B', and so on::"
317324
msgstr ""
325+
":py:func:`~bisect.bisect` 関数は数値テーブルの探索に役に立ちます。この例で"
326+
"は、 :py:func:`~bisect.bisect` を使って、(たとえば)順序のついた数値の区切り点"
327+
"の集合に基づいて、試験の成績の等級を表す文字を調べます。区切り点は 90 以上は "
328+
"'A'、 80 から 89 は 'B'、などです::"
318329

319330
#: ../../library/bisect.rst:196
320331
msgid ""

library/collections.po

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ msgid ""
258258
">>> list(ChainMap(adjustments, baseline))\n"
259259
"['music', 'art', 'opera']"
260260
msgstr ""
261+
">>> baseline = {'music': 'bach', 'art': 'rembrandt'}\n"
262+
">>> adjustments = {'art': 'van gogh', 'opera': 'carmen'}\n"
263+
">>> list(ChainMap(adjustments, baseline))\n"
264+
"['music', 'art', 'opera']"
261265

262266
#: ../../library/collections.rst:110
263267
msgid ""
@@ -274,6 +278,10 @@ msgid ""
274278
">>> list(combined)\n"
275279
"['music', 'art', 'opera']"
276280
msgstr ""
281+
">>> combined = baseline.copy()\n"
282+
">>> combined.update(adjustments)\n"
283+
">>> list(combined)\n"
284+
"['music', 'art', 'opera']"
277285

278286
#: ../../library/collections.rst:118
279287
msgid "Added support for ``|`` and ``|=`` operators, specified in :pep:`584`."
@@ -344,6 +352,8 @@ msgid ""
344352
"import builtins\n"
345353
"pylookup = ChainMap(locals(), globals(), vars(builtins))"
346354
msgstr ""
355+
"import builtins\n"
356+
"pylookup = ChainMap(locals(), globals(), vars(builtins))"
347357

348358
#: ../../library/collections.rst:156
349359
msgid ""
@@ -1237,6 +1247,10 @@ msgid ""
12371247
"normal dictionaries, return ``None`` as a default rather than using :attr:"
12381248
"`default_factory`."
12391249
msgstr ""
1250+
"なお、 :meth:`__missing__` は :meth:`~object.__getitem__` 以外のいかなる演算"
1251+
"に対しても呼び出され *ません* 。よって :meth:`~dict.get` は、普通の辞書と同様"
1252+
"に、 :attr:`default_factory` を使うのではなくデフォルトとして ``None`` を返し"
1253+
"ます。"
12401254

12411255
#: ../../library/collections.rst:756
12421256
msgid ":class:`defaultdict` objects support the following instance variable:"
@@ -1348,6 +1362,12 @@ msgid ""
13481362
"`~object.__repr__` method which lists the tuple contents in a ``name=value`` "
13491363
"format."
13501364
msgstr ""
1365+
"*typename* という名前の tuple の新しいサブクラスを返します。新しいサブクラス"
1366+
"は、 tuple に似ているけれどもインデックスやイテレータだけでなく属性名によるア"
1367+
"クセスもできるオブジェクトを作るのに使います。このサブクラスのインスタンス"
1368+
"は、わかりやすい docstring (型名と属性名が入っています) や、 tuple の内容を "
1369+
"``name=value`` という形のリストで返す使いやすい :meth:`~object.__repr__` も"
1370+
"持っています。"
13511371

13521372
#: ../../library/collections.rst:856
13531373
msgid ""
@@ -1407,6 +1427,8 @@ msgid ""
14071427
"If *module* is defined, the :attr:`~type.__module__` attribute of the named "
14081428
"tuple is set to that value."
14091429
msgstr ""
1430+
"もし *module* が指定されていれば、名前付きタプルの :attr:`~type.__module__` "
1431+
"属性は、指定された値に設定されます"
14101432

14111433
#: ../../library/collections.rst:881
14121434
msgid ""
@@ -1442,13 +1464,15 @@ msgstr "*module* 引数が追加されました。"
14421464

14431465
#: ../../library/collections.rst:897
14441466
msgid "Removed the *verbose* parameter and the :attr:`!_source` attribute."
1445-
msgstr ""
1467+
msgstr "*verbose* 引数と :attr:`!_source` 属性が削除されました。"
14461468

14471469
#: ../../library/collections.rst:900
14481470
msgid ""
14491471
"Added the *defaults* parameter and the :attr:`~somenamedtuple."
14501472
"_field_defaults` attribute."
14511473
msgstr ""
1474+
"*defaults* 引数と :attr:`~somenamedtuple._field_defaults` 属性が追加されまし"
1475+
"た。"
14521476

14531477
#: ../../library/collections.rst:904
14541478
msgid ""
@@ -1789,6 +1813,9 @@ msgid ""
17891813
"different signature. It accepts an optional argument to specify which item "
17901814
"is popped."
17911815
msgstr ""
1816+
":class:`OrderedDict` の :meth:`~OrderedDict.popitem` メソッドはシグネチャが異"
1817+
"なります。\n"
1818+
"どの要素を取り出すかを指定するオプション引数を受け付けます。"
17921819

17931820
#: ../../library/collections.rst:1116
17941821
msgid ""
@@ -1814,6 +1841,8 @@ msgid ""
18141841
":class:`OrderedDict` has a :meth:`~OrderedDict.move_to_end` method to "
18151842
"efficiently reposition an element to an endpoint."
18161843
msgstr ""
1844+
":class:`OrderedDict` には、 効率的に要素を末尾に置き直す :meth:`~OrderedDict."
1845+
"move_to_end` メソッドがあります。"
18171846

18181847
#: ../../library/collections.rst:1126
18191848
msgid ""
@@ -1839,6 +1868,8 @@ msgstr ""
18391868
msgid ""
18401869
"Until Python 3.8, :class:`dict` lacked a :meth:`~object.__reversed__` method."
18411870
msgstr ""
1871+
"Python 3.8 以前は、 :class:`dict` には :meth:`~object.__reversed__` メソッド"
1872+
"が欠けています。"
18421873

18431874
#: ../../library/collections.rst:1139
18441875
msgid ""
@@ -1917,6 +1948,8 @@ msgid ""
19171948
"passed to the :class:`OrderedDict` constructor and its :meth:`~dict.update` "
19181949
"method."
19191950
msgstr ""
1951+
":pep:`468` の受理によって、:class:`OrderedDict` のコンストラクタと、:meth:"
1952+
"`~dict.update` メソッドに渡したキーワード引数の順序は保持されます。"
19201953

19211954
#: ../../library/collections.rst:1197
19221955
msgid ":class:`OrderedDict` Examples and Recipes"

library/gzip.po

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ msgid ""
156156
"IOBase.truncate` method. At least one of *fileobj* and *filename* must be "
157157
"given a non-trivial value."
158158
msgstr ""
159+
":class:`GzipFile` クラスのコンストラクタです。:class:`GzipFile` オブジェクト"
160+
"は :meth:`~io.IOBase.truncate` メソッドを除くほとんどの :term:`ファイルオブ"
161+
"ジェクト <file object>` のメソッドをシミュレートします。少なくとも *fileobj* "
162+
"および *filename* は有効な値でなければなりません。"
159163

160164
#: ../../library/gzip.rst:77
161165
msgid ""
@@ -235,13 +239,22 @@ msgid ""
235239
"writing as *fileobj*, and retrieve the resulting memory buffer using the :"
236240
"class:`io.BytesIO` object's :meth:`~io.BytesIO.getvalue` method."
237241
msgstr ""
242+
"圧縮したデータの後ろにさらに何か追加したい場合もあるので、:class:`GzipFile` "
243+
"オブジェクトの :meth:`!close` メソッド呼び出しは *fileobj* を閉じません。\n"
244+
"このため、書き込みのためにオープンした :class:`io.BytesIO` オブジェクトを "
245+
"*fileobj* として渡し、(:class:`GzipFile` を :meth:`close` した後に) :class:"
246+
"`io.BytesIO` オブジェクトの :meth:`~io.BytesIO.getvalue` メソッドを使って書き"
247+
"込んだデータの入っているメモリバッファを取得することができます。"
238248

239249
#: ../../library/gzip.rst:116
240250
msgid ""
241251
":class:`GzipFile` supports the :class:`io.BufferedIOBase` interface, "
242252
"including iteration and the :keyword:`with` statement. Only the :meth:`~io."
243253
"IOBase.truncate` method isn't implemented."
244254
msgstr ""
255+
":class:`GzipFile` は、イテレーションと :keyword:`with` 文を含む :class:`io."
256+
"BufferedIOBase` インターフェイスをサポートしています。:meth:`~io.IOBase."
257+
"truncate` メソッドのみ実装されていません。"
245258

246259
#: ../../library/gzip.rst:120
247260
msgid ":class:`GzipFile` also provides the following method and attribute:"
@@ -252,6 +265,8 @@ msgid ""
252265
"Read *n* uncompressed bytes without advancing the file position. The number "
253266
"of bytes returned may be more or less than requested."
254267
msgstr ""
268+
"ファイル内の位置を移動せずに展開した *n* バイトを読み込みます。返されるバイト"
269+
"数はほぼ要求した値になります。"
255270

256271
#: ../../library/gzip.rst:127
257272
msgid ""

library/pickle.po

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ msgid ""
260260
"as JSON (which can't represent pointer sharing); however it means that non-"
261261
"Python programs may not be able to reconstruct pickled Python objects."
262262
msgstr ""
263+
":mod:`pickle` によって使用されるデータフォーマットは Python 固有です。これ"
264+
"は、JSON のような外部標準によって (例えばポインター共有を表わすことができない"
265+
"といったような) 制限を受けることがないという利点があります; ただし、これは非 "
266+
"Python プログラムが pickle された Python オブジェクトを再構成することができな"
267+
"いということも意味します。"
263268

264269
#: ../../library/pickle.rst:131
265270
msgid ""
@@ -334,6 +339,11 @@ msgid ""
334339
"optimizations. This was the default protocol in Python 3.8--3.13. Refer to :"
335340
"pep:`3154` for information about improvements brought by protocol 4."
336341
msgstr ""
342+
"プロトコルバージョン 4 は Python 3.4 で追加されました。このバージョンでは巨大"
343+
"なオブジェクトのサポート、より多くの種類のオブジェクトの pickle 化、および一"
344+
"部のデータ形式の最適化が行われました。これはPython 3.8から3.13 までのデフォル"
345+
"トプロトコルでした。プロトコル 4 による改良に関する情報は :pep:`3154` を参照"
346+
"してください。"
337347

338348
#: ../../library/pickle.rst:163
339349
msgid ""
@@ -342,6 +352,10 @@ msgid ""
342352
"Python 3.14. Refer to :pep:`574` for information about improvements brought "
343353
"by protocol 5."
344354
msgstr ""
355+
"プロトコルバージョン 5 は Python 3.8 で追加されました。このバージョンでは帯域"
356+
"外データのサポートが追加され、また帯域内データに対するパフォーマンスが向上し"
357+
"ます。これはPython 3.14からのデフォルトプロトコルです。プロトコルバージョン "
358+
"5 によってもたらされる改善についての情報は :pep:`574` を参照してください。"
345359

346360
#: ../../library/pickle.rst:169
347361
msgid ""
@@ -417,7 +431,7 @@ msgstr "デフォルトプロトコルは 4 です。"
417431

418432
#: ../../library/pickle.rst:218
419433
msgid "The default protocol is 5."
420-
msgstr ""
434+
msgstr "デフォルトプロトコルは 5 です。"
421435

422436
#: ../../library/pickle.rst:220
423437
msgid ""
@@ -612,6 +626,8 @@ msgid ""
612626
"If *buffer_callback* is ``None`` (the default), buffer views are serialized "
613627
"into *file* as part of the pickle stream."
614628
msgstr ""
629+
"*buffer_callback* が ``None`` (デフォルト) の場合、バッファビューはストリーム"
630+
"の一部として*file* 中に直列化されます。"
615631

616632
#: ../../library/pickle.rst:327
617633
msgid ""
@@ -620,12 +636,19 @@ msgid ""
620636
"``None``), the given buffer is :ref:`out-of-band <pickle-oob>`; otherwise "
621637
"the buffer is serialized in-band, i.e. inside the pickle stream."
622638
msgstr ""
639+
"*buffer_callback* が ``None`` でない場合、バッファビューを引数として何度でも"
640+
"呼び出すことができる関数です。コールバック関数が偽値 (``None`` など) を返す"
641+
"と、与えられたバッファは :ref:`アウトオブバウンド管理 (out-of-band) <pickle-"
642+
"oob>` となります; そうでない場合はインバンドで、すなわち pickle ストリーム内"
643+
"で、直列化されます。"
623644

624645
#: ../../library/pickle.rst:332
625646
msgid ""
626647
"It is an error if *buffer_callback* is not ``None`` and *protocol* is "
627648
"``None`` or smaller than 5."
628649
msgstr ""
650+
"*buffer_callback* が ``None`` でなく、かつ *protocol* が ``None`` または 5 よ"
651+
"り小さい場合はエラーとなります。"
629652

630653
#: ../../library/pickle.rst:340
631654
msgid ""
@@ -811,6 +834,10 @@ msgid ""
811834
"*buffer_callback* argument was ``None`` when a :class:`Pickler` was "
812835
"instantiated (or when :func:`dump` or :func:`dumps` was called)."
813836
msgstr ""
837+
"*buffers* が ``None`` (デフォルト値) の場合、非直列化に必要な全てのデータは "
838+
"pickle ストリームに含まれている必要があります。これは :class:`Pickler` がイン"
839+
"スタンス化されたとき (または :func:`dump` や :func:`dumps` が呼び出されたと"
840+
"き) に *buffer_callback* 引数に ``None`` を指定したことに相当します。"
814841

815842
#: ../../library/pickle.rst:444
816843
msgid ""
@@ -819,6 +846,10 @@ msgid ""
819846
"of-band <pickle-oob>` buffer view. Such buffers have been given in order to "
820847
"the *buffer_callback* of a Pickler object."
821848
msgstr ""
849+
"*buffers* が ``None`` でない場合、各イテレーションで :ref:`アウトオブバウン"
850+
"ド (out-of-band) <pickle-oob>` のバッファビューを参照する pickle ストリームを"
851+
"消費する、バッファ対応のイテラブルでなければなりません。ここに指定するバッ"
852+
"ファは Pickler オブジェクトの *buffer_callback* に順番に渡されたものです。"
822853

823854
#: ../../library/pickle.rst:454
824855
msgid ""

library/tarfile.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,18 @@ msgid ""
291291
"bz2'``, :func:`tarfile.open` accepts the keyword argument *compresslevel* "
292292
"(default ``9``) to specify the compression level of the file."
293293
msgstr ""
294+
"``'w:gz'``、``'x:gz'``、``'w|gz'``、``'w:bz2'``、``'x:bz2'``、``'w|bz2'`` "
295+
"モードの場合、:func:`tarfile.open` はファイルの圧縮レベルを指定するキーワード"
296+
"引数 *compresslevel* (デフォルトは ``9``) を受け付けます。"
294297

295298
#: ../../library/tarfile.rst:115
296299
msgid ""
297300
"For modes ``'w:xz'``, ``'x:xz'`` and ``'w|xz'``, :func:`tarfile.open` "
298301
"accepts the keyword argument *preset* to specify the compression level of "
299302
"the file."
300303
msgstr ""
304+
"``'w:xz'``、``'x:xz'`` および ``'w|xz'`` モードの場合、:func:`tarfile.open` "
305+
"はファイルの圧縮レベルを指定するキーワード引数 *preset* を受け付けます。"
301306

302307
#: ../../library/tarfile.rst:118
303308
msgid ""

0 commit comments

Comments
 (0)