55#
66# Translators:
77# python-doc bot, 2025
8+ # qqfunc, 2025
89#
910#, fuzzy
1011msgid ""
1112msgstr ""
1213"Project-Id-Version : Python 3.14\n "
1314"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2025-10-27 14:15+0000\n "
15+ "POT-Creation-Date : 2025-11-11 14:15+0000\n "
1516"PO-Revision-Date : 2025-09-16 00:01+0000\n "
16- "Last-Translator : python-doc bot , 2025\n "
17+ "Last-Translator : qqfunc , 2025\n "
1718"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
1819"ja/)\n "
1920"MIME-Version : 1.0\n "
@@ -46,28 +47,33 @@ msgstr ""
4647
4748#: ../../library/devmode.rst:19
4849msgid "Effects of the Python Development Mode"
49- msgstr ""
50+ msgstr "Python 開発モードの影響 "
5051
5152#: ../../library/devmode.rst:21
5253msgid ""
5354"Enabling the Python Development Mode is similar to the following command, "
5455"but with additional effects described below::"
5556msgstr ""
57+ "Python 開発モードを有効化することは次のコマンドに似ていますが、以下で説明され"
58+ "る追加の影響があります::"
5659
5760#: ../../library/devmode.rst:24
5861msgid ""
5962"PYTHONMALLOC=debug PYTHONASYNCIODEBUG=1 python -W default -X faulthandler"
6063msgstr ""
64+ "PYTHONMALLOC=debug PYTHONASYNCIODEBUG=1 python -W default -X faulthandler"
6165
6266#: ../../library/devmode.rst:26
6367msgid "Effects of the Python Development Mode:"
64- msgstr ""
68+ msgstr "Python 開発モードの影響: "
6569
6670#: ../../library/devmode.rst:28
6771msgid ""
6872"Add ``default`` :ref:`warning filter <describing-warning-filters>`. The "
6973"following warnings are shown:"
7074msgstr ""
75+ "``default`` の :ref:`警告フィルタ <describing-warning-filters>` を追加しま"
76+ "す。次の警告が表示されます:"
7177
7278#: ../../library/devmode.rst:31
7379msgid ":exc:`DeprecationWarning`"
@@ -90,6 +96,8 @@ msgid ""
9096"Normally, the above warnings are filtered by the default :ref:`warning "
9197"filters <describing-warning-filters>`."
9298msgstr ""
99+ "通常、上記の警告は デフォルトの :ref:`警告フィルタ <describing-warning-"
100+ "filters>` によりフィルタリングされます。"
93101
94102#: ../../library/devmode.rst:39
95103msgid ""
@@ -227,7 +235,7 @@ msgstr ""
227235
228236#: ../../library/devmode.rst:111
229237msgid "ResourceWarning Example"
230- msgstr ""
238+ msgstr "ResourceWarning の例 "
231239
232240#: ../../library/devmode.rst:113
233241msgid ""
@@ -248,6 +256,16 @@ msgid ""
248256"if __name__ == \" __main__\" :\n"
249257" main()"
250258msgstr ""
259+ "import sys\n"
260+ "\n"
261+ "def main():\n"
262+ " fp = open(sys.argv[1])\n"
263+ " nlines = len(fp.readlines())\n"
264+ " print(nlines)\n"
265+ " # ファイルは暗黙的に閉じられる\n"
266+ "\n"
267+ "if __name__ == \" __main__\" :\n"
268+ " main()"
251269
252270#: ../../library/devmode.rst:127
253271msgid ""
@@ -260,6 +278,8 @@ msgid ""
260278"$ python script.py README.txt\n"
261279"269"
262280msgstr ""
281+ "$ python script.py README.txt\n"
282+ "269"
263283
264284#: ../../library/devmode.rst:135
265285msgid ""
@@ -276,6 +296,12 @@ msgid ""
276296" main()\n"
277297"ResourceWarning: Enable tracemalloc to get the object allocation traceback"
278298msgstr ""
299+ "$ python -X dev script.py README.txt\n"
300+ "269\n"
301+ "script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='README."
302+ "rst' mode='r' encoding='UTF-8'>\n"
303+ " main()\n"
304+ "ResourceWarning: Enable tracemalloc to get the object allocation traceback"
279305
280306#: ../../library/devmode.rst:145
281307msgid ""
@@ -296,6 +322,16 @@ msgid ""
296322" File \" script.py\" , lineno 4\n"
297323" fp = open(sys.argv[1])"
298324msgstr ""
325+ "$ python -X dev -X tracemalloc=5 script.py README.rst\n"
326+ "269\n"
327+ "script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='README."
328+ "rst' mode='r' encoding='UTF-8'>\n"
329+ " main()\n"
330+ "Object allocated at (most recent call last):\n"
331+ " File \" script.py\" , lineno 10\n"
332+ " main()\n"
333+ " File \" script.py\" , lineno 4\n"
334+ " fp = open(sys.argv[1])"
299335
300336#: ../../library/devmode.rst:160
301337msgid ""
@@ -310,6 +346,11 @@ msgid ""
310346" nlines = len(fp.readlines())\n"
311347" print(nlines)"
312348msgstr ""
349+ "def main():\n"
350+ " # ブロックを終了する際に明示的にファイルを閉じる\n"
351+ " with open(sys.argv[1]) as fp:\n"
352+ " nlines = len(fp.readlines())\n"
353+ " print(nlines)"
313354
314355#: ../../library/devmode.rst:168
315356msgid ""
@@ -340,6 +381,16 @@ msgid ""
340381"\n"
341382"main()"
342383msgstr ""
384+ "import os\n"
385+ "\n"
386+ "def main():\n"
387+ " fp = open(__file__)\n"
388+ " firstline = fp.readline()\n"
389+ " print(firstline.rstrip())\n"
390+ " os.close(fp.fileno())\n"
391+ " # ファイルは暗黙的に閉じられる\n"
392+ "\n"
393+ "main()"
343394
344395#: ../../library/devmode.rst:190
345396msgid "By default, Python does not emit any warning:"
@@ -350,6 +401,8 @@ msgid ""
350401"$ python script.py\n"
351402"import os"
352403msgstr ""
404+ "$ python script.py\n"
405+ "import os"
353406
354407#: ../../library/devmode.rst:197
355408msgid ""
@@ -372,6 +425,18 @@ msgid ""
372425" main()\n"
373426"OSError: [Errno 9] Bad file descriptor"
374427msgstr ""
428+ "$ python -X dev script.py\n"
429+ "import os\n"
430+ "script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='script."
431+ "py' mode='r' encoding='UTF-8'>\n"
432+ " main()\n"
433+ "ResourceWarning: Enable tracemalloc to get the object allocation traceback\n"
434+ "Exception ignored in: <_io.TextIOWrapper name='script.py' mode='r' "
435+ "encoding='UTF-8'>\n"
436+ "Traceback (most recent call last):\n"
437+ " File \" script.py\" , line 10, in <module>\n"
438+ " main()\n"
439+ "OSError: [Errno 9] Bad file descriptor"
375440
376441#: ../../library/devmode.rst:213
377442msgid ""
0 commit comments