Skip to content

Commit 56e2208

Browse files
author
github-actions
committed
Merge 3.14 into 3.11
1 parent aeeaf13 commit 56e2208

File tree

6 files changed

+90
-10
lines changed

6 files changed

+90
-10
lines changed

library/functions.po

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,6 +1917,10 @@ msgid ""
19171917
">>> s\n"
19181918
"\"Monty Python's Flying Circus\""
19191919
msgstr ""
1920+
">>> s = input('--> ')\n"
1921+
"--> Monty Python's Flying Circus\n"
1922+
">>> s\n"
1923+
"\"Monty Python's Flying Circus\""
19201924

19211925
#: ../../library/functions.rst:986
19221926
msgid ""
@@ -1984,6 +1988,10 @@ msgid ""
19841988
"__int__()``. If the argument defines :meth:`~object.__index__`, it returns "
19851989
"``x.__index__()``. For floating-point numbers, this truncates towards zero."
19861990
msgstr ""
1991+
"引数に :meth:`~object.__int__` が定義されている場合は、 ``int(x)`` は ``x."
1992+
"__int__()`` を返します。引数に :meth:`~object.__index__` が定義されている場合"
1993+
"は、 ``x.__index__()`` を返します。浮動小数点数については、これは 0 に近い側"
1994+
"へ切り捨てます。"
19871995

19881996
#: ../../library/functions.rst:1028
19891997
msgid ""
@@ -2319,7 +2327,7 @@ msgstr ""
23192327

23202328
#: ../../library/functions.rst:1219
23212329
msgid "Added the *strict* parameter."
2322-
msgstr ""
2330+
msgstr "*strict* パラメータが追加されました。"
23232331

23242332
#: ../../library/functions.rst:1227
23252333
msgid ""
@@ -3736,6 +3744,9 @@ msgid ""
37363744
"> A -> object`` and the value of *type* is ``B``, then :func:`super` "
37373745
"searches ``C -> A -> object``."
37383746
msgstr ""
3747+
"例えば *object_or_type* の :attr:`~type.__mro__` 属性が ``D -> B -> C -> A -"
3748+
"> object`` であり、 *type* の値が ``B`` だとすると、 :func:`super` は ``C -> "
3749+
"A -> object`` の順番でメソッドを検索します。"
37393750

37403751
#: ../../library/functions.rst:1989
37413752
msgid ""
@@ -3893,6 +3904,8 @@ msgid ""
38933904
"type object and generally the same object as returned by :attr:`object."
38943905
"__class__`."
38953906
msgstr ""
3907+
"引数が1つだけの場合、*object* の型を返します。返り値は型オブジェクトで、一般"
3908+
"に :attr:`object.__class__` によって返されるのと同じオブジェクトです。"
38963909

38973910
#: ../../library/functions.rst:2074
38983911
msgid ""
@@ -3914,6 +3927,14 @@ msgid ""
39143927
"__dict__` attribute. The following two statements create identical :class:`!"
39153928
"type` objects:"
39163929
msgstr ""
3930+
"引数が3つの場合、新しい型オブジェクトを返します。これは本質的には :keyword:"
3931+
"`class` 文の動的な書式です。 *name* 文字列はクラス名で、 :attr:`~type."
3932+
"__name__` 属性になります。 *bases* 基底クラスのタプルで、 :attr:`~type."
3933+
"__bases__` 属性になります; 空の場合は全てのクラスの基底クラスである :class:"
3934+
"`object` が追加されます。 *dict* は、クラス本体の属性とメソッドの定義を含む辞"
3935+
"書です; 辞書は :attr:`~type.__dict__` 属性になる前にコピーされたり、ラップさ"
3936+
"れることがあります。以下の2つの文は同じ :class:`!type` オブジェクトを生成しま"
3937+
"す:"
39173938

39183939
#: ../../library/functions.rst:2092
39193940
msgid "See also:"
@@ -3951,12 +3972,16 @@ msgid ""
39513972
"Subclasses of :class:`!type` which don't override ``type.__new__`` may no "
39523973
"longer use the one-argument form to get the type of an object."
39533974
msgstr ""
3975+
"``type.__new__`` をオーバーライドしていない :class:`!type` のサブクラスは、オ"
3976+
"ブジェクトの型を得るのに1引数形式を利用することができません。"
39543977

39553978
#: ../../library/functions.rst:2111
39563979
msgid ""
39573980
"Return the :attr:`~object.__dict__` attribute for a module, class, instance, "
39583981
"or any other object with a :attr:`!__dict__` attribute."
39593982
msgstr ""
3983+
"モジュール、クラス、インスタンス、あるいはそれ以外の :attr:`!__dict__` 属性を"
3984+
"持つオブジェクトの、 :attr:`~object.__dict__` 属性を返します。"
39603985

39613986
#: ../../library/functions.rst:2114
39623987
msgid ""
@@ -3965,6 +3990,11 @@ msgid ""
39653990
"their :attr:`!__dict__` attributes (for example, classes use a :class:`types."
39663991
"MappingProxyType` to prevent direct dictionary updates)."
39673992
msgstr ""
3993+
"モジュールやインスタンスのようなオブジェクトは、更新可能な :attr:`~object."
3994+
"__dict__` 属性を持っています。ただし、それ以外のオブジェクトでは :attr:`!"
3995+
"__dict__` 属性への書き込みが制限されている場合があります。書き込みに制限があ"
3996+
"る例としては、辞書を直接更新されることを防ぐために :class:`types."
3997+
"MappingProxyType` を使っているクラスがあります。"
39683998

39693999
#: ../../library/functions.rst:2119
39704000
msgid "Without an argument, :func:`vars` acts like :func:`locals`."

library/idle.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ msgstr ""
2525

2626
#: ../../library/idle.rst:4
2727
msgid "IDLE --- Python editor and shell"
28-
msgstr ""
28+
msgstr "IDLE --- Python のエディタとシェル"
2929

3030
#: ../../library/idle.rst:8
3131
msgid "**Source code:** :source:`Lib/idlelib/`"

library/intro.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ msgid ""
145145
"If not separately noted, all functions that claim \"Availability: Unix\" are "
146146
"supported on macOS, iOS and Android, all of which build on a Unix core."
147147
msgstr ""
148+
"特に記述がない場合、「利用できる環境 : Unix 」と書かれている関数は、 Unix を"
149+
"コアにしているmacOS、iOS、Androidでも利用することができます。"
148150

149151
#: ../../library/intro.rst:63
150152
msgid ""
@@ -272,7 +274,7 @@ msgstr ""
272274

273275
#: ../../library/intro.rst:139
274276
msgid "Subprocesses:"
275-
msgstr ""
277+
msgstr "サブプロセス:"
276278

277279
#: ../../library/intro.rst:141
278280
msgid ""

library/marshal.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ msgstr ""
260260

261261
#: ../../library/marshal.rst:165
262262
msgid "New features"
263-
msgstr ""
263+
msgstr "新しい機能"
264264

265265
#: ../../library/marshal.rst:167
266266
msgid "1"

using/editors.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ msgstr ""
3838

3939
#: ../../using/editors.rst:14
4040
msgid "IDLE --- Python editor and shell"
41-
msgstr ""
41+
msgstr "IDLE --- Python のエディタとシェル"
4242

4343
#: ../../using/editors.rst:16
4444
msgid ""

whatsnew/3.10.po

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,14 @@ msgid ""
832832
" case 418:\n"
833833
" return \"I'm a teapot\""
834834
msgstr ""
835+
"def http_error(status):\n"
836+
" match status:\n"
837+
" case 400:\n"
838+
" return \"Bad request\"\n"
839+
" case 404:\n"
840+
" return \"Not found\"\n"
841+
" case 418:\n"
842+
" return \"I'm a teapot\""
835843

836844
#: ../../whatsnew/3.10.rst:519
837845
msgid ""
@@ -933,6 +941,23 @@ msgid ""
933941
" case _:\n"
934942
" print(\"Not a point\")"
935943
msgstr ""
944+
"class Point:\n"
945+
" def __init__(self, x, y):\n"
946+
" self.x = x\n"
947+
" self.y = y\n"
948+
"\n"
949+
"def location(point):\n"
950+
" match point:\n"
951+
" case Point(x=0, y=0):\n"
952+
" print(\"原点\")\n"
953+
" case Point(x=0, y=y):\n"
954+
" print(f\"Y座標は {y} で点はY軸上にある\")\n"
955+
" case Point(x=x, y=0):\n"
956+
" print(f\"X座標は {x} で点はX軸上にある\")\n"
957+
" case Point():\n"
958+
" print(\"点は平面上のそれ以外のどこかにある\")\n"
959+
" case _:\n"
960+
" print(\"座標ではない\")"
936961

937962
#: ../../whatsnew/3.10.rst:575
938963
msgid "Patterns with positional parameters"
@@ -991,6 +1016,17 @@ msgid ""
9911016
" case _:\n"
9921017
" print(\"Something else is found in the list.\")"
9931018
msgstr ""
1019+
"match points:\n"
1020+
" case []:\n"
1021+
" print(\"リストに座標がない\")\n"
1022+
" case [Point(0, 0)]:\n"
1023+
" print(\"リスト中には原点が1つのみある\")\n"
1024+
" case [Point(x, y)]:\n"
1025+
" print(f\"リスト中に {x}, {y} の点が1つある\")\n"
1026+
" case [Point(0, y1), Point(0, y2)]:\n"
1027+
" print(f\"リスト中にY軸上の2つの点 {y1}、{y2} がある\")\n"
1028+
" case _:\n"
1029+
" print(\"リスト中にそれ以外のデータが見つかった\")"
9941030

9951031
#: ../../whatsnew/3.10.rst:607
9961032
msgid "Complex patterns and the wildcard"
@@ -1004,7 +1040,7 @@ msgid ""
10041040
msgstr ""
10051041
"ここまでの例では、最後の case 文で ``_`` を単独のワイルドカードとして使用して"
10061042
"きました。しかし、ワイルドカードはより複雑なパターン内でも使用できます。たと"
1007-
"えば、``('error', code, _)``のように使用することができます。"
1043+
"えば、 ``('error', code, _)``のように使用することができます。"
10081044

10091045
#: ../../whatsnew/3.10.rst:613
10101046
msgid ""
@@ -1014,6 +1050,11 @@ msgid ""
10141050
" case ('error', code, _):\n"
10151051
" print(f\"An error {code} occurred.\")"
10161052
msgstr ""
1053+
"match test_variable:\n"
1054+
" case ('warning', code, 40):\n"
1055+
" print(\"警告を受け取った\")\n"
1056+
" case ('error', code, _):\n"
1057+
" print(f\"エラー {code} が発生した\")"
10171058

10181059
#: ../../whatsnew/3.10.rst:619
10191060
msgid ""
@@ -1045,6 +1086,11 @@ msgid ""
10451086
" case Point(x, y):\n"
10461087
" print(f\"Point is not on the diagonal.\")"
10471088
msgstr ""
1089+
"match point:\n"
1090+
" case Point(x, y) if x == y:\n"
1091+
" print(f\"座標は対角線 Y=X 上の {x} の位置にある\")\n"
1092+
" case Point(x, y):\n"
1093+
" print(f\"座標の位置は対角線上ではない\")"
10481094

10491095
#: ../../whatsnew/3.10.rst:636
10501096
msgid "Other Key Features"
@@ -1077,9 +1123,9 @@ msgid ""
10771123
msgstr ""
10781124
"シーケンスパターンではワイルドカードをサポートしています。たとえば、``[x, y, "
10791125
"*rest]`` や ``(x, y, *rest)`` は、アンパック代入におけるワイルドカードと同様"
1080-
"に動作します。``*`` の後の名前を ``_`` にすることもでき、``(x, y, *_)``は少な"
1081-
"くとも 2 つの要素を持つシーケンスにマッチしますが、残りの要素は変数に束縛され"
1082-
"ません。"
1126+
"に動作します。``*`` の後の名前を ``_`` にすることもでき、``(x, y, *_)`` は少"
1127+
"なくとも 2 つの要素を持つシーケンスにマッチしますが、残りの要素は変数に束縛さ"
1128+
"れません。"
10831129

10841130
#: ../../whatsnew/3.10.rst:651
10851131
msgid ""
@@ -1088,7 +1134,7 @@ msgid ""
10881134
"patterns, extra keys are ignored. A wildcard ``**rest`` is also supported. "
10891135
"(But ``**_`` would be redundant, so is not allowed.)"
10901136
msgstr ""
1091-
"マッピングパターン: ``{\"bandwidth\": b, \"latency\": l}``では、辞書から "
1137+
"マッピングパターン: ``{\"bandwidth\": b, \"latency\": l}`` では、辞書から "
10921138
"``\"bandwidth\"`` と ``\"latency\"`` の値を取得します。シーケンスパターンとは"
10931139
"異なり、余分なキーは無視されます。また、ワイルドカード ``**rest`` もサポート"
10941140
"されています。(ただし、``**_`` は冗長になるため使用できません。)"
@@ -1106,6 +1152,8 @@ msgid ""
11061152
"This binds x1, y1, x2, y2 like you would expect without the ``as`` clause, "
11071153
"and p2 to the entire second item of the subject."
11081154
msgstr ""
1155+
"このように書くと x1、y1、x2、y2 は ``as`` 節を使わないときと同様に、さらにp2"
1156+
"に対象の2番目の要素全体がバインドされます。"
11091157

11101158
#: ../../whatsnew/3.10.rst:663
11111159
msgid ""

0 commit comments

Comments
 (0)