| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 32b2111 commit de38687
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,7 +28,7 @@ msgstr ":mod:`zoneinfo` --- IANA タイムゾーンのサポート" | |||
| 28 | 28 | ||
| 29 | 29 | #: ../../library/zoneinfo.rst:12 | |
| 30 | 30 | msgid "**Source code:** :source:`Lib/zoneinfo`" | |
| 31 | - msgstr "" | ||
| 31 | + msgstr "**ソースコード:** :source:`Lib/zoneinfo`" | ||
| 32 | 32 | ||
| 33 | 33 | #: ../../library/zoneinfo.rst:16 | |
| 34 | 34 | msgid "" | |
@@ -38,6 +38,11 @@ msgid "" | |||
| 38 | 38 | "if no system time zone data is available, the library will fall back to " | |
| 39 | 39 | "using the first-party `tzdata`_ package available on PyPI." | |
| 40 | 40 | msgstr "" | |
| 41 | + ":mod:`zoneinfo` モジュールは :pep:`615` で規定された、IANAのタイムゾーンデー" | ||
| 42 | + "タベースをサポートした具体的なタイムゾーン実装を提供します。 デフォルトで" | ||
| 43 | + "は、:mod:`zoneinfo` はシステムのタイムゾーンデータが利用可能であれば使用しま" | ||
| 44 | + "す。システムのタイムゾーンデータが利用できない場合、ライブラリはPyPIにある" | ||
| 45 | + "ファーストパーティーのパッケージ `tzdata`_ を代わりに使用します。" | ||
| 41 | 46 | ||
| 42 | 47 | #: ../../library/zoneinfo.rst:26 | |
| 43 | 48 | msgid "Module: :mod:`datetime`" | |
@@ -48,6 +53,8 @@ msgid "" | |||
| 48 | 53 | "Provides the :class:`~datetime.time` and :class:`~datetime.datetime` types " | |
| 49 | 54 | "with which the :class:`ZoneInfo` class is designed to be used." | |
| 50 | 55 | msgstr "" | |
| 56 | + ":class:`ZoneInfo` クラスを使用するように設計されたデータ型 :class:`~datetime." | ||
| 57 | + "time` と :class:`~datetime.datetime` を提供します。" | ||
| 51 | 58 | ||
| 52 | 59 | #: ../../library/zoneinfo.rst:29 | |
| 53 | 60 | msgid "Package `tzdata`_" | |
@@ -58,6 +65,8 @@ msgid "" | |||
| 58 | 65 | "First-party package maintained by the CPython core developers to supply time " | |
| 59 | 66 | "zone data via PyPI." | |
| 60 | 67 | msgstr "" | |
| 68 | + "CPythonコアデベロッパーによってメンテナンスされているファーストパーティーの" | ||
| 69 | + "パッケージ。タイムゾーンデータを供給し、PyPIで配布されている。" | ||
| 61 | 70 | ||
| 62 | 71 | #: ../../library/zoneinfo.rst:34 | |
| 63 | 72 | msgid "Using ``ZoneInfo``" | |
@@ -71,6 +80,10 @@ msgid "" | |||
| 71 | 80 | "replace>` method or :meth:`datetime.astimezone <datetime.datetime." | |
| 72 | 81 | "astimezone>`::" | |
| 73 | 82 | msgstr "" | |
| 83 | + ":class:`ZoneInfo` は :class:`datetime.tzinfo` 抽象基底クラスの具体的な実装で" | ||
| 84 | + "あり、``tzinfo`` に指定することを想定しています。コンストラクタ、:meth:" | ||
| 85 | + "`datetime.replace <datetime.datetime.replace>` メソッド、:meth:`datetime." | ||
| 86 | + "astimezone <datetime.datetime.astimezone>` メソッドのいずれかで指定します。" | ||
| 74 | 87 | ||
| 75 | 88 | #: ../../library/zoneinfo.rst:51 | |
| 76 | 89 | msgid "" | |
@@ -205,7 +218,7 @@ msgstr "" | |||
| 205 | 218 | ||
| 206 | 219 | #: ../../library/zoneinfo.rst:171 | |
| 207 | 220 | msgid "The ``ZoneInfo`` class" | |
| 208 | - msgstr "" | ||
| 221 | + msgstr "``ZoneInfo`` クラス" | ||
| 209 | 222 | ||
| 210 | 223 | #: ../../library/zoneinfo.rst:175 | |
| 211 | 224 | msgid "" | |
@@ -215,6 +228,11 @@ msgid "" | |||
| 215 | 228 | "cache invalidation via :meth:`ZoneInfo.clear_cache`, for all values of " | |
| 216 | 229 | "``key``, the following assertion will always be true:" | |
| 217 | 230 | 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:" | ||
| 218 | 236 | ||
| 219 | 237 | #: ../../library/zoneinfo.rst:187 | |
| 220 | 238 | msgid "" | |
@@ -228,17 +246,22 @@ msgid "" | |||
| 228 | 246 | "If no file matching ``key`` is found, the constructor will raise :exc:" | |
| 229 | 247 | "`ZoneInfoNotFoundError`." | |
| 230 | 248 | msgstr "" | |
| 249 | + "``key`` に一致するファイルが見つからない場合、コンストラクタは :exc:" | ||
| 250 | + "`ZoneInfoNotFoundError` を送出します。" | ||
| 231 | 251 | ||
| 232 | 252 | #: ../../library/zoneinfo.rst:195 | |
| 233 | 253 | msgid "The ``ZoneInfo`` class has two alternate constructors:" | |
| 234 | - msgstr "" | ||
| 254 | + msgstr "``ZoneInfo`` クラスには2つの別のコンストラクターがあります:" | ||
| 235 | 255 | ||
| 236 | 256 | #: ../../library/zoneinfo.rst:199 | |
| 237 | 257 | msgid "" | |
| 238 | 258 | "Constructs a ``ZoneInfo`` object from a file-like object returning bytes (e." | |
| 239 | 259 | "g. a file opened in binary mode or an :class:`io.BytesIO` object). Unlike " | |
| 240 | 260 | "the primary constructor, this always constructs a new object." | |
| 241 | 261 | msgstr "" | |
| 262 | + "file-like オブジェクトが返すbytes(バイナリーモードで開いたファイルや :class:" | ||
| 263 | + "`io.BytesIO` オブジェクト)から ``ZoneInfo`` オブジェクトを構築します。一次" | ||
| 264 | + "コンストラクタと異なり、常に新規オブジェクトを構築します。" | ||
| 242 | 265 | ||
| 243 | 266 | #: ../../library/zoneinfo.rst:203 | |
| 244 | 267 | msgid "" | |
@@ -250,6 +273,8 @@ msgstr "" | |||
| 250 | 273 | msgid "" | |
| 251 | 274 | "Objects created via this constructor cannot be pickled (see `pickling`_)." | |
| 252 | 275 | msgstr "" | |
| 276 | + "このコンストラクタで生成したオブジェクトはpickle化できません(`pickling`_ を" | ||
| 277 | + "参照)。" | ||
| 253 | 278 | ||
| 254 | 279 | #: ../../library/zoneinfo.rst:210 | |
| 255 | 280 | msgid "" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -326,8 +326,8 @@ msgstr "" | |||
| 326 | 326 | "慎重に学んでください!最初のパターンには2つのリテラルがあり、上で示したリテラ" | |
| 327 | 327 | "ルパターンの拡張と考えることができます。しかし次の2つのパターンはリテラルと変" | |
| 328 | 328 | "数の組み合わせのため、対象(``point``)から値を取り出して変数に *結びつけ* ま" | |
| 329 | - "す。4番目のパターンは2つの値を捕まえます。これは、アンパック代入 ``(x, y) = " | ||
| 330 | - "point`` と概念的に似ています。" | ||
| 329 | + "す。4番目のパターンは2つの値を取り込みます。これは、アンパック代入 ``(x, y) " | ||
| 330 | + "= point`` と概念的に似ています。" | ||
| 331 | 331 | ||
| 332 | 332 | #: ../../tutorial/controlflow.rst:305 | |
| 333 | 333 | msgid "" | |
@@ -363,6 +363,12 @@ msgid "" | |||
| 363 | 363 | "(recognized by the \"(...)\" next to them like ``Point`` above) are never " | |
| 364 | 364 | "assigned to." | |
| 365 | 365 | msgstr "" | |
| 366 | + "おすすめの方法は、どの変数になにが設定されるかを理解するために、パターンを代" | ||
| 367 | + "入文の左側に配置するものを拡張した形式として読むことです。単独の名前(上記の " | ||
| 368 | + "``var`` など)だけがマッチ文で値が代入されます。ドット付きの名前(``foo." | ||
| 369 | + "bar`` など)、属性名(上記の ``x=``、``y=`` など )、クラス名(名前の後ろの " | ||
| 370 | + "\"(...)\" によって判別される。上記の ``Point`` など)には値は代入されませ" | ||
| 371 | + "ん。" | ||
| 366 | 372 | ||
| 367 | 373 | #: ../../tutorial/controlflow.rst:344 | |
| 368 | 374 | msgid "" | |
@@ -392,6 +398,9 @@ msgid "" | |||
| 392 | 398 | "meaning and actually match arbitrary sequences. An important exception is " | |
| 393 | 399 | "that they don't match iterators or strings." | |
| 394 | 400 | msgstr "" | |
| 401 | + "アンパック代入のように、タプルとリストのパターンでは正確に同じ意味で、任意の" | ||
| 402 | + "シーケンスと一致します。重要な例外として、イテレーターや文字列ではマッチしま" | ||
| 403 | + "せん。" | ||
| 395 | 404 | ||
| 396 | 405 | #: ../../tutorial/controlflow.rst:375 | |
| 397 | 406 | msgid "" | |
@@ -400,6 +409,10 @@ msgid "" | |||
| 400 | 409 | "also be ``_``, so ``(x, y, *_)`` matches a sequence of at least two items " | |
| 401 | 410 | "without binding the remaining items." | |
| 402 | 411 | msgstr "" | |
| 412 | + "シーケンスパターンは拡張アンパックをサポート: ``[x, y, *rest]`` と ``(x, y, " | ||
| 413 | + "*rest)`` はアンパック代入として同じように動作します。``*`` のあとの変数名は " | ||
| 414 | + "``_`` でもよく、そのため ``(x, y, *_)`` は最低でも2つのアイテムを持つシーケン" | ||
| 415 | + "スにマッチし、残りのアイテムは変数に結びつけられません。" | ||
| 403 | 416 | ||
| 404 | 417 | #: ../../tutorial/controlflow.rst:380 | |
| 405 | 418 | msgid "" | |
@@ -408,28 +421,38 @@ msgid "" | |||
| 408 | 421 | "sequence patterns, extra keys are ignored. An unpacking like ``**rest`` is " | |
| 409 | 422 | "also supported. (But ``**_`` would be redundant, so it is not allowed.)" | |
| 410 | 423 | msgstr "" | |
| 424 | + "マッピングパターン: ``{\"bandwidth\": b, \"latency\": l}`` は辞書から " | ||
| 425 | + "``\"bandwidth\"`` と ``\"latency\"`` の値を取り込みます。シーケンスパターンと" | ||
| 426 | + "は異なり、それ以外のキーは無視されます。アンパッキングのような ``**rest`` も" | ||
| 427 | + "サポートされています(しかし、 ``**_`` は冗長なため禁止されています)。" | ||
| 411 | 428 | ||
| 412 | 429 | #: ../../tutorial/controlflow.rst:385 | |
| 413 | 430 | msgid "Subpatterns may be captured using the ``as`` keyword::" | |
| 414 | - msgstr "" | ||
| 431 | + msgstr "サブパターンでは ``as`` キーワードを使用して値を取り込みます::" | ||
| 415 | 432 | ||
| 416 | 433 | #: ../../tutorial/controlflow.rst:389 | |
| 417 | 434 | msgid "" | |
| 418 | 435 | "will capture the second element of the input as ``p2`` (as long as the input " | |
| 419 | 436 | "is a sequence of two points)" | |
| 420 | 437 | msgstr "" | |
| 438 | + "この例では入力から2番目の要素を ``p2`` として取り込みます(入力が2つのポイン" | ||
| 439 | + "トのシーケンスである場合)" | ||
| 421 | 440 | ||
| 422 | 441 | #: ../../tutorial/controlflow.rst:392 | |
| 423 | 442 | msgid "" | |
| 424 | 443 | "Most literals are compared by equality, however the singletons ``True``, " | |
| 425 | 444 | "``False`` and ``None`` are compared by identity." | |
| 426 | 445 | msgstr "" | |
| 446 | + "ほとんどのリテラルは同一性を比較しますが、シングルトンの ``True``、" | ||
| 447 | + "``False``、``None`` では識別値を比較します。" | ||
| 427 | 448 | ||
| 428 | 449 | #: ../../tutorial/controlflow.rst:395 | |
| 429 | 450 | msgid "" | |
| 430 | 451 | "Patterns may use named constants. These must be dotted names to prevent " | |
| 431 | 452 | "them from being interpreted as capture variable::" | |
| 432 | 453 | msgstr "" | |
| 454 | + "パターンには名前を付けた定数が使用できます。値を取り込む変数としてと解釈する" | ||
| 455 | + "ことを防ぐために、ドット付きの変数名にする必要があります。" | ||
| 433 | 456 | ||
| 434 | 457 | #: ../../tutorial/controlflow.rst:414 | |
| 435 | 458 | msgid "" | |
@@ -1007,6 +1030,10 @@ msgid "" | |||
| 1007 | 1030 | "``*args`` parameter are 'keyword-only' arguments, meaning that they can only " | |
| 1008 | 1031 | "be used as keywords rather than positional arguments. ::" | |
| 1009 | 1032 | msgstr "" | |
| 1033 | + "通常このような *可変* 引数は、関数に渡される入力引数の残りを全て掬い取るため" | ||
| 1034 | + "に、仮引数リストの最後に置かれます。\n" | ||
| 1035 | + "``*args`` 引数の後にある仮引数は 'キーワード専用' 引数で、位置引数ではなく" | ||
| 1036 | + "キーワード引数としてのみ使えることを意味します。 ::" | ||
| 1010 | 1037 | ||
| 1011 | 1038 | #: ../../tutorial/controlflow.rst:906 | |
| 1012 | 1039 | msgid "Unpacking Argument Lists" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -307,6 +307,8 @@ msgid "" | |||
| 307 | 307 | "The installation-dependent default (by convention including a ``site-" | |
| 308 | 308 | "packages`` directory, handled by the :mod:`site` module)." | |
| 309 | 309 | msgstr "" | |
| 310 | + "インストール方法に依存したデフォルト(慣例として ``site-packages`` ディレクト" | ||
| 311 | + "リーが含まれ、:mod:`site` モジュールによって処理される)。" | ||
| 310 | 312 | ||
| 311 | 313 | #: ../../tutorial/modules.rst:200 | |
| 312 | 314 | msgid "" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments