Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde38687

Browse files
author
github-actions
committed
Merge 3.11 into 3.10
1 parent32b2111 commitde38687

File tree

5 files changed

+128
-47
lines changed

5 files changed

+128
-47
lines changed

‎library/zoneinfo.po

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ msgstr ":mod:`zoneinfo` --- IANA タイムゾーンのサポート"
2828

2929
#:../../library/zoneinfo.rst:12
3030
msgid"**Source code:** :source:`Lib/zoneinfo`"
31-
msgstr""
31+
msgstr"**ソースコード:** :source:`Lib/zoneinfo`"
3232

3333
#:../../library/zoneinfo.rst:16
3434
msgid""
@@ -38,6 +38,11 @@ msgid ""
3838
"if no system time zone data is available, the library will fall back to "
3939
"using the first-party `tzdata`_ package available on PyPI."
4040
msgstr""
41+
":mod:`zoneinfo` モジュールは :pep:`615` で規定された、IANAのタイムゾーンデー"
42+
"タベースをサポートした具体的なタイムゾーン実装を提供します。 デフォルトで"
43+
"は、:mod:`zoneinfo` はシステムのタイムゾーンデータが利用可能であれば使用しま"
44+
"す。システムのタイムゾーンデータが利用できない場合、ライブラリはPyPIにある"
45+
"ファーストパーティーのパッケージ `tzdata`_ を代わりに使用します。"
4146

4247
#:../../library/zoneinfo.rst:26
4348
msgid"Module: :mod:`datetime`"
@@ -48,6 +53,8 @@ msgid ""
4853
"Provides the :class:`~datetime.time` and :class:`~datetime.datetime` types "
4954
"with which the :class:`ZoneInfo` class is designed to be used."
5055
msgstr""
56+
":class:`ZoneInfo` クラスを使用するように設計されたデータ型 :class:`~datetime."
57+
"time` と :class:`~datetime.datetime` を提供します。"
5158

5259
#:../../library/zoneinfo.rst:29
5360
msgid"Package `tzdata`_"
@@ -58,6 +65,8 @@ msgid ""
5865
"First-party package maintained by the CPython core developers to supply time "
5966
"zone data via PyPI."
6067
msgstr""
68+
"CPythonコアデベロッパーによってメンテナンスされているファーストパーティーの"
69+
"パッケージ。タイムゾーンデータを供給し、PyPIで配布されている。"
6170

6271
#:../../library/zoneinfo.rst:34
6372
msgid"Using ``ZoneInfo``"
@@ -71,6 +80,10 @@ msgid ""
7180
"replace>` method or :meth:`datetime.astimezone <datetime.datetime."
7281
"astimezone>`::"
7382
msgstr""
83+
":class:`ZoneInfo` は :class:`datetime.tzinfo` 抽象基底クラスの具体的な実装で"
84+
"あり、``tzinfo`` に指定することを想定しています。コンストラクタ、:meth:"
85+
"`datetime.replace <datetime.datetime.replace>` メソッド、:meth:`datetime."
86+
"astimezone <datetime.datetime.astimezone>` メソッドのいずれかで指定します。"
7487

7588
#:../../library/zoneinfo.rst:51
7689
msgid""
@@ -205,7 +218,7 @@ msgstr ""
205218

206219
#:../../library/zoneinfo.rst:171
207220
msgid"The ``ZoneInfo`` class"
208-
msgstr""
221+
msgstr"``ZoneInfo`` クラス"
209222

210223
#:../../library/zoneinfo.rst:175
211224
msgid""
@@ -215,6 +228,11 @@ msgid ""
215228
"cache invalidation via :meth:`ZoneInfo.clear_cache`, for all values of "
216229
"``key``, the following assertion will always be true:"
217230
msgstr""
231+
"文字列 ``key`` でIANAタイムゾーンを指定した、具体的な :class:`datetime."
232+
"tzinfo` のサブクラス。Calls to the primary constructor will always return "
233+
"objects that compare identically; put another way, barring cache "
234+
"invalidation via :meth:`ZoneInfo.clear_cache`, for all values of ``key``, "
235+
"the following assertion will always be true:"
218236

219237
#:../../library/zoneinfo.rst:187
220238
msgid""
@@ -228,17 +246,22 @@ msgid ""
228246
"If no file matching ``key`` is found, the constructor will raise :exc:"
229247
"`ZoneInfoNotFoundError`."
230248
msgstr""
249+
"``key`` に一致するファイルが見つからない場合、コンストラクタは :exc:"
250+
"`ZoneInfoNotFoundError` を送出します。"
231251

232252
#:../../library/zoneinfo.rst:195
233253
msgid"The ``ZoneInfo`` class has two alternate constructors:"
234-
msgstr""
254+
msgstr"``ZoneInfo`` クラスには2つの別のコンストラクターがあります:"
235255

236256
#:../../library/zoneinfo.rst:199
237257
msgid""
238258
"Constructs a ``ZoneInfo`` object from a file-like object returning bytes (e."
239259
"g. a file opened in binary mode or an :class:`io.BytesIO` object). Unlike "
240260
"the primary constructor, this always constructs a new object."
241261
msgstr""
262+
"file-like オブジェクトが返すbytes(バイナリーモードで開いたファイルや :class:"
263+
"`io.BytesIO` オブジェクト)から ``ZoneInfo`` オブジェクトを構築します。一次"
264+
"コンストラクタと異なり、常に新規オブジェクトを構築します。"
242265

243266
#:../../library/zoneinfo.rst:203
244267
msgid""
@@ -250,6 +273,8 @@ msgstr ""
250273
msgid""
251274
"Objects created via this constructor cannot be pickled (see `pickling`_)."
252275
msgstr""
276+
"このコンストラクタで生成したオブジェクトはpickle化できません(`pickling`_ を"
277+
"参照)。"
253278

254279
#:../../library/zoneinfo.rst:210
255280
msgid""

‎tutorial/controlflow.po

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ msgstr ""
326326
"慎重に学んでください!最初のパターンには2つのリテラルがあり、上で示したリテラ"
327327
"ルパターンの拡張と考えることができます。しかし次の2つのパターンはリテラルと変"
328328
"数の組み合わせのため、対象(``point``)から値を取り出して変数に *結びつけ* ま"
329-
"す。4番目のパターンは2つの値を捕まえます。これは、アンパック代入 ``(x, y) = "
330-
"point`` と概念的に似ています。"
329+
"す。4番目のパターンは2つの値を取り込みます。これは、アンパック代入 ``(x, y) "
330+
"=point`` と概念的に似ています。"
331331

332332
#:../../tutorial/controlflow.rst:305
333333
msgid""
@@ -363,6 +363,12 @@ msgid ""
363363
"(recognized by the\"(...)\" next to them like ``Point`` above) are never "
364364
"assigned to."
365365
msgstr""
366+
"おすすめの方法は、どの変数になにが設定されるかを理解するために、パターンを代"
367+
"入文の左側に配置するものを拡張した形式として読むことです。単独の名前(上記の "
368+
"``var`` など)だけがマッチ文で値が代入されます。ドット付きの名前(``foo."
369+
"bar`` など)、属性名(上記の ``x=``、``y=`` など )、クラス名(名前の後ろの "
370+
"\"(...)\" によって判別される。上記の ``Point`` など)には値は代入されませ"
371+
"ん。"
366372

367373
#:../../tutorial/controlflow.rst:344
368374
msgid""
@@ -392,6 +398,9 @@ msgid ""
392398
"meaning and actually match arbitrary sequences. An important exception is "
393399
"that they don't match iterators or strings."
394400
msgstr""
401+
"アンパック代入のように、タプルとリストのパターンでは正確に同じ意味で、任意の"
402+
"シーケンスと一致します。重要な例外として、イテレーターや文字列ではマッチしま"
403+
"せん。"
395404

396405
#:../../tutorial/controlflow.rst:375
397406
msgid""
@@ -400,6 +409,10 @@ msgid ""
400409
"also be ``_``, so ``(x, y, *_)`` matches a sequence of at least two items "
401410
"without binding the remaining items."
402411
msgstr""
412+
"シーケンスパターンは拡張アンパックをサポート: ``[x, y, *rest]`` と ``(x, y, "
413+
"*rest)`` はアンパック代入として同じように動作します。``*`` のあとの変数名は "
414+
"``_`` でもよく、そのため ``(x, y, *_)`` は最低でも2つのアイテムを持つシーケン"
415+
"スにマッチし、残りのアイテムは変数に結びつけられません。"
403416

404417
#:../../tutorial/controlflow.rst:380
405418
msgid""
@@ -408,28 +421,38 @@ msgid ""
408421
"sequence patterns, extra keys are ignored. An unpacking like ``**rest`` is "
409422
"also supported. (But ``**_`` would be redundant, so it is not allowed.)"
410423
msgstr""
424+
"マッピングパターン: ``{\"bandwidth\": b,\"latency\": l}`` は辞書から "
425+
"``\"bandwidth\"`` と ``\"latency\"`` の値を取り込みます。シーケンスパターンと"
426+
"は異なり、それ以外のキーは無視されます。アンパッキングのような ``**rest`` も"
427+
"サポートされています(しかし、 ``**_`` は冗長なため禁止されています)。"
411428

412429
#:../../tutorial/controlflow.rst:385
413430
msgid"Subpatterns may be captured using the ``as`` keyword::"
414-
msgstr""
431+
msgstr"サブパターンでは ``as`` キーワードを使用して値を取り込みます::"
415432

416433
#:../../tutorial/controlflow.rst:389
417434
msgid""
418435
"will capture the second element of the input as ``p2`` (as long as the input "
419436
"is a sequence of two points)"
420437
msgstr""
438+
"この例では入力から2番目の要素を ``p2`` として取り込みます(入力が2つのポイン"
439+
"トのシーケンスである場合)"
421440

422441
#:../../tutorial/controlflow.rst:392
423442
msgid""
424443
"Most literals are compared by equality, however the singletons ``True``, "
425444
"``False`` and ``None`` are compared by identity."
426445
msgstr""
446+
"ほとんどのリテラルは同一性を比較しますが、シングルトンの ``True``、"
447+
"``False``、``None`` では識別値を比較します。"
427448

428449
#:../../tutorial/controlflow.rst:395
429450
msgid""
430451
"Patterns may use named constants. These must be dotted names to prevent "
431452
"them from being interpreted as capture variable::"
432453
msgstr""
454+
"パターンには名前を付けた定数が使用できます。値を取り込む変数としてと解釈する"
455+
"ことを防ぐために、ドット付きの変数名にする必要があります。"
433456

434457
#:../../tutorial/controlflow.rst:414
435458
msgid""
@@ -1007,6 +1030,10 @@ msgid ""
10071030
"``*args`` parameter are 'keyword-only' arguments, meaning that they can only "
10081031
"be used as keywords rather than positional arguments. ::"
10091032
msgstr""
1033+
"通常このような *可変* 引数は、関数に渡される入力引数の残りを全て掬い取るため"
1034+
"に、仮引数リストの最後に置かれます。\n"
1035+
"``*args`` 引数の後にある仮引数は 'キーワード専用' 引数で、位置引数ではなく"
1036+
"キーワード引数としてのみ使えることを意味します。 ::"
10101037

10111038
#:../../tutorial/controlflow.rst:906
10121039
msgid"Unpacking Argument Lists"

‎tutorial/modules.po

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ msgid ""
307307
"The installation-dependent default (by convention including a ``site-"
308308
"packages`` directory, handled by the :mod:`site` module)."
309309
msgstr""
310+
"インストール方法に依存したデフォルト(慣例として ``site-packages`` ディレクト"
311+
"リーが含まれ、:mod:`site` モジュールによって処理される)。"
310312

311313
#:../../tutorial/modules.rst:200
312314
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp