Skip to content

Commit c96a93e

Browse files
author
github-actions
committed
Merge 3.14 into 3.13
1 parent cb6b581 commit c96a93e

File tree

11 files changed

+287
-118
lines changed

11 files changed

+287
-118
lines changed

library/abc.po

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ msgid ""
7373
"an abstract base class can be created by simply deriving from :class:`!ABC` "
7474
"avoiding sometimes confusing metaclass usage, for example::"
7575
msgstr ""
76+
"メタクラスとして :class:`ABCMeta` を持つヘルパークラスです。このクラスを使う"
77+
"ことで、:class:`!ABC` を継承するだけで抽象基底クラスを作成でき、しばしば混乱"
78+
"しがちなメタクラスの使用を避けることができます。例えば::"
7679

7780
#: ../../library/abc.rst:36
7881
msgid ""

library/cmath.po

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -289,39 +289,39 @@ msgstr ""
289289

290290
#: ../../library/cmath.rst:80
291291
msgid "**Constants**"
292-
msgstr ""
292+
msgstr "**定数**"
293293

294294
#: ../../library/cmath.rst:82
295295
msgid ":data:`pi`"
296-
msgstr ""
296+
msgstr ":data:`pi`"
297297

298298
#: ../../library/cmath.rst:82
299299
msgid "*π* = 3.141592..."
300-
msgstr ""
300+
msgstr "*π* = 3.141592..."
301301

302302
#: ../../library/cmath.rst:83
303303
msgid ":data:`e`"
304-
msgstr ""
304+
msgstr ":data:`e`"
305305

306306
#: ../../library/cmath.rst:83
307307
msgid "*e* = 2.718281..."
308-
msgstr ""
308+
msgstr "*e* = 2.718281..."
309309

310310
#: ../../library/cmath.rst:84
311311
msgid ":data:`tau`"
312-
msgstr ""
312+
msgstr ":data:`tau`"
313313

314314
#: ../../library/cmath.rst:84
315315
msgid "*τ* = 2\\ *π* = 6.283185..."
316-
msgstr ""
316+
msgstr "*τ* = 2\\ *π* = 6.283185..."
317317

318318
#: ../../library/cmath.rst:85
319319
msgid ":data:`inf`"
320-
msgstr ""
320+
msgstr ":data:`inf`"
321321

322322
#: ../../library/cmath.rst:85
323323
msgid "Positive infinity"
324-
msgstr ""
324+
msgstr "正の無限大"
325325

326326
#: ../../library/cmath.rst:86
327327
msgid ":data:`infj`"
@@ -333,11 +333,11 @@ msgstr ""
333333

334334
#: ../../library/cmath.rst:87
335335
msgid ":data:`nan`"
336-
msgstr ""
336+
msgstr ":data:`nan`"
337337

338338
#: ../../library/cmath.rst:87
339339
msgid "\"Not a number\" (NaN)"
340-
msgstr ""
340+
msgstr "非数 \"Not a number\" (NaN)"
341341

342342
#: ../../library/cmath.rst:88
343343
msgid ":data:`nanj`"

library/datetime.po

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ msgstr ""
334334
msgid ""
335335
"A :class:`.datetime` object ``d`` is aware if both of the following hold:"
336336
msgstr ""
337+
"次の条件を両方とも満たす場合、 :class:`.datetime` オブジェクト ``d`` は "
338+
"aware です:"
337339

338340
#: ../../library/datetime.rst:185
339341
msgid "``d.tzinfo`` is not ``None``"
@@ -345,11 +347,13 @@ msgstr "``d.tzinfo.utcoffset(d)`` が ``None`` を返さない"
345347

346348
#: ../../library/datetime.rst:188
347349
msgid "Otherwise, ``d`` is naive."
348-
msgstr ""
350+
msgstr "どちらかを満たさない場合は、 ``d`` は naive です。"
349351

350352
#: ../../library/datetime.rst:190
351353
msgid "A :class:`.time` object ``t`` is aware if both of the following hold:"
352354
msgstr ""
355+
"次の条件を両方とも満たす場合、 :class:`.time` オブジェクト ``t`` は aware で"
356+
"す:"
353357

354358
#: ../../library/datetime.rst:192
355359
msgid "``t.tzinfo`` is not ``None``"
@@ -361,7 +365,7 @@ msgstr "``t.tzinfo.utcoffset(None)`` が ``None`` を返さない"
361365

362366
#: ../../library/datetime.rst:195
363367
msgid "Otherwise, ``t`` is naive."
364-
msgstr ""
368+
msgstr "どちらかを満たさない場合は、 ``t`` は naive です。"
365369

366370
#: ../../library/datetime.rst:197
367371
msgid ""
@@ -562,11 +566,11 @@ msgstr "インスタンスの属性 (読み出しのみ):"
562566

563567
#: ../../library/datetime.rst:307
564568
msgid "Between -999,999,999 and 999,999,999 inclusive."
565-
msgstr ""
569+
msgstr "両端値を含む-999,999,999 から 999,999,999 の間"
566570

567571
#: ../../library/datetime.rst:312
568572
msgid "Between 0 and 86,399 inclusive."
569-
msgstr ""
573+
msgstr "両端値を含む 0 から 86,399 の間"
570574

571575
#: ../../library/datetime.rst:316
572576
msgid ""
@@ -587,7 +591,7 @@ msgstr ""
587591

588592
#: ../../library/datetime.rst:331
589593
msgid "Between 0 and 999,999 inclusive."
590-
msgstr ""
594+
msgstr "両端値を含む 0 から 999,999 の間"
591595

592596
#: ../../library/datetime.rst:334 ../../library/datetime.rst:650
593597
#: ../../library/datetime.rst:1248
@@ -708,6 +712,8 @@ msgid ""
708712
"Computes the quotient and the remainder: ``q = t1 // t2`` (3) and ``r = t1 % "
709713
"t2``. ``q`` is an integer and ``r`` is a :class:`timedelta` object."
710714
msgstr ""
715+
"商と剰余が計算されます: ``q = t1 // t2`` (3) と ``r = t1 % t2`` 。``q`` は整"
716+
"数で ``r`` は :class:`timedelta` オブジェクトです。"
711717

712718
#: ../../library/datetime.rst:380
713719
msgid "``+t1``"
@@ -726,6 +732,8 @@ msgid ""
726732
"Equivalent to ``timedelta(-t1.days, -t1.seconds, -t1.microseconds)``, and to "
727733
"``t1 * -1``. (1)(4)"
728734
msgstr ""
735+
"``timedelta(-t1.days, -t1.seconds, -t1.microseconds)``、および ``t1 * -1`` と"
736+
"同じです。 (1)(4)"
729737

730738
#: ../../library/datetime.rst:387
731739
msgid "``abs(t)``"
@@ -1020,6 +1028,10 @@ msgid ""
10201028
":exc:`ValueError` is raised unless ``1 <= ordinal <= date.max.toordinal()``. "
10211029
"For any date ``d``, ``date.fromordinal(d.toordinal()) == d``."
10221030
msgstr ""
1031+
"``1 <= ordinal <= date.max.toordinal()`` でない場合、 :exc:`ValueError` が送"
1032+
"出されます。\n"
1033+
"任意の日付 ``d`` に対し、 ``date.fromordinal(d.toordinal()) == d`` となりま"
1034+
"す。"
10231035

10241036
#: ../../library/datetime.rst:551
10251037
msgid ""
@@ -1082,14 +1094,18 @@ msgstr ""
10821094

10831095
#: ../../library/datetime.rst:586
10841096
msgid "date(*(time.strptime(date_string, format)[0:3]))"
1085-
msgstr ""
1097+
msgstr "date(*(time.strptime(date_string, format)[0:3]))"
10861098

10871099
#: ../../library/datetime.rst:588
10881100
msgid ""
10891101
":exc:`ValueError` is raised if the date_string and format can't be parsed "
10901102
"by :func:`time.strptime` or if it returns a value which isn't a time tuple. "
10911103
"See also :ref:`strftime-strptime-behavior` and :meth:`date.fromisoformat`."
10921104
msgstr ""
1105+
"date_string と format が :func:`time.strptime` で構文解析できない場合や、この"
1106+
"関数が時刻タプルを返してこない場合には :exc:`ValueError` を送出します。:ref:"
1107+
"`strftime-strptime-behavior` および :meth:`date.fromisoformat` も参照してくだ"
1108+
"さい。"
10931109

10941110
#: ../../library/datetime.rst:595
10951111
msgid ""
@@ -1324,6 +1340,9 @@ msgid ""
13241340
"1 has ordinal 1. For any :class:`date` object ``d``, ``date.fromordinal(d."
13251341
"toordinal()) == d``."
13261342
msgstr ""
1343+
"先発グレゴリオ暦における日付序数を返します。 1 年の 1 月 1 日が序数 1 となり"
1344+
"ます。任意の :class:`date` オブジェクト ``d`` について、 ``date."
1345+
"fromordinal(d.toordinal()) == d`` となります。"
13271346

13281347
#: ../../library/datetime.rst:755
13291348
msgid ""

library/functions.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,6 +2442,9 @@ msgid ""
24422442
":class:`object` instances do *not* have :attr:`~object.__dict__` attributes, "
24432443
"so you can't assign arbitrary attributes to an instance of :class:`object`."
24442444
msgstr ""
2445+
":class:`object` インスタンスは :attr:`~object.__dict__` 属性を *持たない* の"
2446+
"で、 :class:`object` クラスのインスタンスに任意の属性を代入することはできま"
2447+
"せん。"
24452448

24462449
#: ../../library/functions.rst:1315
24472450
msgid ""
@@ -3889,6 +3892,8 @@ msgid ""
38893892
":class:`super` objects are now :mod:`pickleable <pickle>` and :mod:"
38903893
"`copyable <copy>`."
38913894
msgstr ""
3895+
":class:`super` オブジェクトは :term:`pickle 可能 <pickle>` かつ :term:`コピー"
3896+
"可能 <copy>` になりました。"
38923897

38933898
#: ../../library/functions.rst:2061
38943899
msgid ""

library/json.po

Lines changed: 76 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ msgid ""
4444
"wikipedia.org/wiki/JavaScript>`_ object literal syntax (although it is not a "
4545
"strict subset of JavaScript [#rfc-errata]_ )."
4646
msgstr ""
47+
"`JSON (JavaScript Object Notation) <https://json.org>`_ は、 :rfc:`7159` (:"
48+
"rfc:`4627` を obsolete) と `ECMA-404 <https://ecma-international.org/"
49+
"publications-and-standards/standards/ecma-404/>`_ によって定義された軽量の"
50+
"データ交換用のフォーマットです。 JavaScript のオブジェクトリテラル記法に由来"
51+
"しています (`JavaScript <https://en.wikipedia.org/wiki/JavaScript>`_ の厳密な"
52+
"サブセットではありませんが [#rfc-errata]_)。"
4753

4854
#: ../../library/json.rst:22
4955
msgid ""
@@ -67,6 +73,8 @@ msgid ""
6773
"This module exposes an API familiar to users of the standard library :mod:"
6874
"`marshal` and :mod:`pickle` modules."
6975
msgstr ""
76+
"このモジュールの API は標準ライブラリの :mod:`marshal` や :mod:`pickle` の"
77+
"ユーザに馴染み深いものです。"
7078

7179
#: ../../library/json.rst:34
7280
msgid "Encoding basic Python object hierarchies::"
@@ -91,6 +99,22 @@ msgid ""
9199
">>> io.getvalue()\n"
92100
"'[\"streaming API\"]'"
93101
msgstr ""
102+
">>> import json\n"
103+
">>> json.dumps(['foo', {'bar': ('baz', None, 1.0, 2)}])\n"
104+
"'[\"foo\", {\"bar\": [\"baz\", null, 1.0, 2]}]'\n"
105+
">>> print(json.dumps(\"\\\"foo\\bar\"))\n"
106+
"\"\\\"foo\\bar\"\n"
107+
">>> print(json.dumps('\\u1234'))\n"
108+
"\"\\u1234\"\n"
109+
">>> print(json.dumps('\\\\'))\n"
110+
"\"\\\\\"\n"
111+
">>> print(json.dumps({\"c\": 0, \"b\": 0, \"a\": 0}, sort_keys=True))\n"
112+
"{\"a\": 0, \"b\": 0, \"c\": 0}\n"
113+
">>> from io import StringIO\n"
114+
">>> io = StringIO()\n"
115+
">>> json.dump(['streaming API'], io)\n"
116+
">>> io.getvalue()\n"
117+
"'[\"streaming API\"]'"
94118

95119
#: ../../library/json.rst:53
96120
msgid "Compact encoding::"
@@ -102,6 +126,9 @@ msgid ""
102126
">>> json.dumps([1, 2, 3, {'4': 5, '6': 7}], separators=(',', ':'))\n"
103127
"'[1,2,3,{\"4\":5,\"6\":7}]'"
104128
msgstr ""
129+
">>> import json\n"
130+
">>> json.dumps([1, 2, 3, {'4': 5, '6': 7}], separators=(',', ':'))\n"
131+
"'[1,2,3,{\"4\":5,\"6\":7}]'"
105132

106133
#: ../../library/json.rst:59
107134
msgid "Pretty printing::"
@@ -116,10 +143,16 @@ msgid ""
116143
" \"6\": 7\n"
117144
"}"
118145
msgstr ""
146+
">>> import json\n"
147+
">>> print(json.dumps({'6': 7, '4': 5}, sort_keys=True, indent=4))\n"
148+
"{\n"
149+
" \"4\": 5,\n"
150+
" \"6\": 7\n"
151+
"}"
119152

120153
#: ../../library/json.rst:68
121154
msgid "Customizing JSON object encoding::"
122-
msgstr ""
155+
msgstr "JSON オブジェクトのエンコーディング方法をカスタマイズする::"
123156

124157
#: ../../library/json.rst:70
125158
msgid ""
@@ -133,6 +166,15 @@ msgid ""
133166
">>> json.dumps(1 + 2j, default=custom_json)\n"
134167
"'{\"__complex__\": true, \"real\": 1.0, \"imag\": 2.0}'"
135168
msgstr ""
169+
">>> import json\n"
170+
">>> def custom_json(obj):\n"
171+
"... if isinstance(obj, complex):\n"
172+
"... return {'__complex__': True, 'real': obj.real, 'imag': obj."
173+
"imag}\n"
174+
"... raise TypeError(f'Cannot serialize object of {type(obj)}')\n"
175+
"...\n"
176+
">>> json.dumps(1 + 2j, default=custom_json)\n"
177+
"'{\"__complex__\": true, \"real\": 1.0, \"imag\": 2.0}'"
136178

137179
#: ../../library/json.rst:79
138180
msgid "Decoding JSON::"
@@ -150,10 +192,19 @@ msgid ""
150192
">>> json.load(io)\n"
151193
"['streaming API']"
152194
msgstr ""
195+
">>> import json\n"
196+
">>> json.loads('[\"foo\", {\"bar\":[\"baz\", null, 1.0, 2]}]')\n"
197+
"['foo', {'bar': ['baz', None, 1.0, 2]}]\n"
198+
">>> json.loads('\"\\\\\"foo\\\\bar\"')\n"
199+
"'\"foo\\x08ar'\n"
200+
">>> from io import StringIO\n"
201+
">>> io = StringIO('[\"streaming API\"]')\n"
202+
">>> json.load(io)\n"
203+
"['streaming API']"
153204

154205
#: ../../library/json.rst:91
155206
msgid "Customizing JSON object decoding::"
156-
msgstr ""
207+
msgstr "JSON オブジェクトのデコーディング方法をカスタマイズする::"
157208

158209
#: ../../library/json.rst:93
159210
msgid ""
@@ -170,6 +221,18 @@ msgid ""
170221
">>> json.loads('1.1', parse_float=decimal.Decimal)\n"
171222
"Decimal('1.1')"
172223
msgstr ""
224+
">>> import json\n"
225+
">>> def as_complex(dct):\n"
226+
"... if '__complex__' in dct:\n"
227+
"... return complex(dct['real'], dct['imag'])\n"
228+
"... return dct\n"
229+
"...\n"
230+
">>> json.loads('{\"__complex__\": true, \"real\": 1, \"imag\": 2}',\n"
231+
"... object_hook=as_complex)\n"
232+
"(1+2j)\n"
233+
">>> import decimal\n"
234+
">>> json.loads('1.1', parse_float=decimal.Decimal)\n"
235+
"Decimal('1.1')"
173236

174237
#: ../../library/json.rst:106
175238
msgid "Extending :class:`JSONEncoder`::"
@@ -195,7 +258,7 @@ msgstr ""
195258

196259
#: ../../library/json.rst:124
197260
msgid "Using :mod:`json` from the shell to validate and pretty-print:"
198-
msgstr ""
261+
msgstr "シェルから :mod:`json` を使って妥当性チェックをして見やすく表示:"
199262

200263
#: ../../library/json.rst:126
201264
msgid ""
@@ -206,6 +269,12 @@ msgid ""
206269
"$ echo '{1.2:3.4}' | python -m json\n"
207270
"Expecting property name enclosed in double quotes: line 1 column 2 (char 1)"
208271
msgstr ""
272+
"$ echo '{\"json\":\"obj\"}' | python -m json\n"
273+
"{\n"
274+
" \"json\": \"obj\"\n"
275+
"}\n"
276+
"$ echo '{1.2:3.4}' | python -m json\n"
277+
"Expecting property name enclosed in double quotes: line 1 column 2 (char 1)"
209278

210279
#: ../../library/json.rst:135
211280
msgid "See :ref:`json-commandline` for detailed documentation."
@@ -241,6 +310,9 @@ msgid ""
241310
"supporting :term:`file-like object`) using this :ref:`Python-to-JSON "
242311
"conversion table <py-to-json-table>`."
243312
msgstr ""
313+
"この :ref:`PythonからJSONへの変換表 <py-to-json-table>` を使って、 *obj* を "
314+
"JSON 形式の *fp* (``.write()`` がサポートされている :term:`file-like "
315+
"object`) へのストリームとして直列化します。"
244316

245317
#: ../../library/json.rst:164
246318
msgid ""
@@ -534,7 +606,7 @@ msgstr "string"
534606

535607
#: ../../library/json.rst:386 ../../library/json.rst:474
536608
msgid "str"
537-
msgstr "str"
609+
msgstr "文字列"
538610

539611
#: ../../library/json.rst:388
540612
msgid "number (int)"

0 commit comments

Comments
 (0)