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

Commitd6db45b

Browse files
committed
fix: resolve fuzzy entries
1 parent9e71348 commitd6db45b

File tree

14 files changed

+204
-193
lines changed

14 files changed

+204
-193
lines changed

‎.scripts/poetry.lock

Lines changed: 131 additions & 97 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎glossary.po

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -534,9 +534,8 @@ msgstr ""
534534
"修改的變數。"
535535

536536
#:../../glossary.rst:228
537-
#,fuzzy
538537
msgid"closure variable"
539-
msgstr"class variable(類別變數)"
538+
msgstr"closure variable(閉包變數)"
540539

541540
#:../../glossary.rst:230
542541
msgid""
@@ -546,13 +545,19 @@ msgid ""
546545
"`nonlocal` keyword to allow write access, or implicitly defined if the "
547546
"variable is only being read."
548547
msgstr""
548+
"從外部作用域中定義且從\\ :term:`巢狀作用域 <nested scope>`\\ 參照的\\ :term:`"
549+
"自由變數 <free variable>`,不是於 runtime 從全域或內建命名空間解析。可以使"
550+
"用 :keyword:`nonlocal` 關鍵字明確定義以允許寫入存取,或者如果僅需讀取變數則隱"
551+
"式定義即可。"
549552

550553
#:../../glossary.rst:235
551554
msgid""
552555
"For example, in the ``inner`` function in the following code, both ``x`` and "
553556
"``print`` are :term:`free variables <free variable>`, but only ``x`` is a "
554557
"*closure variable*::"
555558
msgstr""
559+
"例如在下面程式碼中的 ``inner`` 函式中,``x`` 和 ``print`` 都是\\ :term:`自由"
560+
"變數 <free variable>`,但只有 ``x`` 是\\ *閉包變數*: ::"
556561

557562
#:../../glossary.rst:238
558563
msgid""
@@ -564,6 +569,13 @@ msgid ""
564569
" print(x)\n"
565570
" return inner"
566571
msgstr""
572+
"def outer():\n"
573+
" x = 0\n"
574+
" def inner():\n"
575+
" nonlocal x\n"
576+
" x += 1\n"
577+
" print(x)\n"
578+
" return inner"
567579

568580
#:../../glossary.rst:246
569581
msgid""
@@ -573,6 +585,9 @@ msgid ""
573585
"sometimes used even when the intended meaning is to refer specifically to "
574586
"closure variables."
575587
msgstr""
588+
"由於 :attr:`codeobject.co_freevars` 屬性(儘管名稱如此,但它僅包含閉包變數的"
589+
"名稱,而不是列出所有參照的自由變數),當預期含義是特指閉包變數時,有時候甚至"
590+
"也會使用更通用的\\ :term:`自由變數 <free variable>`\\ 一詞。"
576591

577592
#:../../glossary.rst:250
578593
msgid"complex number"
@@ -1035,10 +1050,9 @@ msgstr ""
10351050
"entry finder) <path entry finder>` 會使用 :data:`sys.path_hooks`。"
10361051

10371052
#:../../glossary.rst:454
1038-
#,fuzzy
10391053
msgid""
10401054
"See :ref:`finders-and-loaders` and :mod:`importlib` for much more detail."
1041-
msgstr"請參閱 :ref:`importsystem` 和 :mod:`importlib` 以了解更多細節。"
1055+
msgstr"請參閱 :ref:`finders-and-loaders` 和 :mod:`importlib` 以了解更多細節。"
10421056

10431057
#:../../glossary.rst:455
10441058
msgid"floor division"
@@ -1073,9 +1087,8 @@ msgstr ""
10731087
"一個執行緒執行 Python 位元組碼。請參閱 :pep:`703`。"
10741088

10751089
#:../../glossary.rst:468
1076-
#,fuzzy
10771090
msgid"free variable"
1078-
msgstr"context variable(情境變數)"
1091+
msgstr"free variable(自由變數)"
10791092

10801093
#:../../glossary.rst:470
10811094
msgid""
@@ -1338,7 +1351,6 @@ msgstr ""
13381351
"O 時,GIL 總是會被解除。"
13391352

13401353
#:../../glossary.rst:586
1341-
#,fuzzy
13421354
msgid""
13431355
"As of Python 3.13, the GIL can be disabled using the :option:`--disable-gil` "
13441356
"build configuration. After building Python with this option, code must be "
@@ -1348,7 +1360,7 @@ msgid ""
13481360
"core CPUs efficiently. For more details, see :pep:`703`."
13491361
msgstr""
13501362
"從 Python 3.13 開始可以使用 :option:`--disable-gil` 建置設定來停用 GIL。使用"
1351-
"此選項建立 Python 後,必須使用 :option:`-X gil0 <-X>` 來執行程式碼,或者設"
1363+
"此選項建立 Python 後,必須使用 :option:`-X gil=0 <-X>` 來執行程式碼,或者設"
13521364
"定 :envvar:`PYTHON_GIL=0 <PYTHON_GIL>` 環境變數後再執行程式碼。此功能可以提高"
13531365
"多執行緒應用程式的效能,並使多核心 CPU 的高效使用變得更加容易。有關更多詳細資"
13541366
"訊,請參閱 :pep:`703`。"
@@ -1778,28 +1790,24 @@ msgid "loader"
17781790
msgstr"loader(載入器)"
17791791

17801792
#:../../glossary.rst:782
1781-
#,fuzzy
17821793
msgid""
17831794
"An object that loads a module. It must define a method named :meth:"
17841795
"`load_module`. A loader is typically returned by a :term:`finder`. See also:"
17851796
msgstr""
17861797
"一個能夠載入模組的物件。它必須定義一個名為 :meth:`load_module` 的 method(方"
1787-
"法)。載入器通常是被 :term:`finder`\\ (尋檢器)回傳。更多細節請參閱 :pep:"
1788-
"`302`,關於 :term:`abstract base class`\\ (抽象基底類別),請參閱 :class:"
1789-
"`importlib.abc.Loader`。"
1798+
"法)。載入器通常是被 :term:`finder`\\ (尋檢器)回傳。更多細節請參閱:"
17901799

17911800
#:../../glossary.rst:786
17921801
msgid":ref:`finders-and-loaders`"
1793-
msgstr""
1802+
msgstr":ref:`finders-and-loaders`"
17941803

17951804
#:../../glossary.rst:787
17961805
msgid":class:`importlib.abc.Loader`"
1797-
msgstr""
1806+
msgstr":class:`importlib.abc.Loader`"
17981807

17991808
#:../../glossary.rst:788
1800-
#,fuzzy
18011809
msgid":pep:`302`"
1802-
msgstr"請參閱:pep:`1`。"
1810+
msgstr":pep:`302`"
18031811

18041812
#:../../glossary.rst:789
18051813
msgid"locale encoding"
@@ -1966,9 +1974,8 @@ msgstr ""
19661974
"machinery.ModuleSpec` 的一個實例。"
19671975

19681976
#:../../glossary.rst:858
1969-
#,fuzzy
19701977
msgid"See also :ref:`module-specs`."
1971-
msgstr"另請參閱 :term:`module`\\ (模組)。"
1978+
msgstr"另請參閱 :ref:`module-specs`。"
19721979

19731980
#:../../glossary.rst:859
19741981
msgid"MRO"
@@ -2710,20 +2717,19 @@ msgid "soft deprecated"
27102717
msgstr"soft deprecated(軟性棄用)"
27112718

27122719
#:../../glossary.rst:1187
2713-
#,fuzzy
27142720
msgid""
27152721
"A soft deprecated API should not be used in new code, but it is safe for "
27162722
"already existing code to use it. The API remains documented and tested, but "
27172723
"will not be enhanced further."
27182724
msgstr""
2719-
"軟性棄用代表 API不應再用來編寫新程式碼,但在現有程式碼中繼續使用它仍然是安全"
2720-
"。API 仍會以文件記錄並會被測試,但不會進一步開發(不會繼續改進)。"
2725+
"被軟性棄用的 API代表不應再用於新程式碼中,但在現有程式碼中繼續使用它仍會是安"
2726+
"全的。API 仍會以文件記錄並會被測試,但不會被繼續改進。"
27212727

27222728
#:../../glossary.rst:1191
27232729
msgid""
27242730
"Soft deprecation, unlike normal deprecation, does not plan on removing the "
27252731
"API and will not emit warnings."
2726-
msgstr""
2732+
msgstr"與正常棄用不同,軟性棄用沒有刪除 API 的規劃,也不會發出警告。"
27272733

27282734
#:../../glossary.rst:1194
27292735
msgid""

‎howto/argparse.po

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,6 @@ msgid ""
16601660
msgstr""
16611661

16621662
#:../../howto/argparse.rst:860
1663-
#,fuzzy
16641663
msgid""
16651664
"import argparse\n"
16661665
"\n"
@@ -1675,23 +1674,28 @@ msgid ""
16751674
"print(args)"
16761675
msgstr""
16771676
"import argparse\n"
1678-
"parser = argparse.ArgumentParser()\n"
1679-
"parser.add_argument(\"square\", help=\"display a square of a given "
1680-
"number\",\n"
1681-
" type=int)\n"
1677+
"\n"
1678+
"parser = argparse.ArgumentParser(prefix_chars='-+')\n"
1679+
"\n"
1680+
"parser.add_argument('-a', metavar='<value>', action='append',\n"
1681+
" type=lambda x: ('-', x))\n"
1682+
"parser.add_argument('+a', metavar='<value>', action='append',\n"
1683+
" type=lambda x: ('+', x))\n"
1684+
"\n"
16821685
"args = parser.parse_args()\n"
1683-
"print(args.square**2)"
1686+
"print(args)"
16841687

16851688
#:../../howto/argparse.rst:874
16861689
msgid""
16871690
"$ python prog.py -a value1 +a value2\n"
16881691
"Namespace(a=[('-', 'value1'), ('+', 'value2')])"
16891692
msgstr""
1693+
"$ python prog.py -a value1 +a value2\n"
1694+
"Namespace(a=[('-', 'value1'), ('+', 'value2')])"
16901695

16911696
#:../../howto/argparse.rst:879
1692-
#,fuzzy
16931697
msgid"In this example, we:"
1694-
msgstr"例如: ::"
1698+
msgstr"在這個範例當中,我們:"
16951699

16961700
#:../../howto/argparse.rst:881
16971701
msgid""

‎includes/wasm-notavail.po

Lines changed: 0 additions & 29 deletions
This file was deleted.

‎library/argparse.po

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,6 @@ msgid "Common built-in types and functions can be used as type converters:"
16681668
msgstr""
16691669

16701670
#:../../library/argparse.rst:977
1671-
#,fuzzy
16721671
msgid""
16731672
"import argparse\n"
16741673
"import pathlib\n"
@@ -1690,7 +1689,6 @@ msgstr ""
16901689
"parser.add_argument('distance', type=float)\n"
16911690
"parser.add_argument('street', type=ascii)\n"
16921691
"parser.add_argument('code_point', type=ord)\n"
1693-
"parser.add_argument('source_file', type=open)\n"
16941692
"parser.add_argument('dest_file', type=argparse.FileType('w', "
16951693
"encoding='latin-1'))\n"
16961694
"parser.add_argument('datapath', type=pathlib.Path)"
@@ -2146,7 +2144,6 @@ msgid ""
21462144
msgstr""
21472145

21482146
#:../../library/argparse.rst:1256
2149-
#,fuzzy
21502147
msgid""
21512148
">>> import argparse\n"
21522149
">>> parser = argparse.ArgumentParser(prog='snake.py')\n"
@@ -2157,12 +2154,14 @@ msgid ""
21572154
"snake.py: warning: option '--legs' is deprecated\n"
21582155
"Namespace(legs=4)"
21592156
msgstr""
2160-
">>> parser = argparse.ArgumentParser()\n"
2161-
">>> parser.add_argument('--foo', default=argparse.SUPPRESS)\n"
2157+
">>> import argparse\n"
2158+
">>> parser = argparse.ArgumentParser(prog='snake.py')\n"
2159+
">>> parser.add_argument('--legs', default=0, type=int, deprecated=True)\n"
21622160
">>> parser.parse_args([])\n"
2163-
"Namespace()\n"
2164-
">>> parser.parse_args(['--foo', '1'])\n"
2165-
"Namespace(foo='1')"
2161+
"Namespace(legs=0)\n"
2162+
">>> parser.parse_args(['--legs', '4']) \n"
2163+
"snake.py: warning: option '--legs' is deprecated\n"
2164+
"Namespace(legs=4)"
21662165

21672166
#:../../library/argparse.rst:1269
21682167
msgid"Action classes"
@@ -2729,7 +2728,6 @@ msgid ""
27292728
msgstr""
27302729

27312730
#:../../library/argparse.rst:1623
2732-
#,fuzzy
27332731
msgid""
27342732
">>> parser.parse_args(['--help'])\n"
27352733
"usage: PROG [-h] [--foo] {a,b} ...\n"
@@ -2763,7 +2761,7 @@ msgstr ""
27632761
"usage: PROG [-h] [--foo] {a,b} ...\n"
27642762
"\n"
27652763
"positional arguments:\n"
2766-
" {a,b}sub-command help\n"
2764+
" {a,b}subcommand help\n"
27672765
" a a help\n"
27682766
" b b help\n"
27692767
"\n"

‎library/datetime.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,8 @@ msgid "``d.tzinfo.utcoffset(d)`` does not return ``None``"
283283
msgstr"``d.tzinfo.utcoffset(d)`` 不會回傳 ``None``"
284284

285285
#:../../library/datetime.rst:188
286-
#,fuzzy
287286
msgid"Otherwise, ``d`` is naive."
288-
msgstr"否則*d* 會是 naive 的。"
287+
msgstr"否則``d`` 會是 naive 的。"
289288

290289
#:../../library/datetime.rst:190
291290
msgid"A :class:`.time` object ``t`` is aware if both of the following hold:"
@@ -300,9 +299,8 @@ msgid "``t.tzinfo.utcoffset(None)`` does not return ``None``."
300299
msgstr"``t.tzinfo.utcoffset(None)`` 沒有回傳 ``None``。"
301300

302301
#:../../library/datetime.rst:195
303-
#,fuzzy
304302
msgid"Otherwise, ``t`` is naive."
305-
msgstr"否則*d* 會是 naive 的。"
303+
msgstr"否則``t`` 會是 naive 的。"
306304

307305
#:../../library/datetime.rst:197
308306
msgid""
@@ -618,6 +616,8 @@ msgid ""
618616
"Equivalent to ``timedelta(-t1.days, -t1.seconds, -t1.microseconds)``, and to "
619617
"``t1 * -1``. (1)(4)"
620618
msgstr""
619+
"等價於 ``timedelta(-t1.days, -t1.seconds, -t1.microseconds)``,也等價於 ``t1 "
620+
"* -1``。 (1)(4)"
621621

622622
#:../../library/datetime.rst:371
623623
msgid"``abs(t)``"

‎library/multiprocessing.po

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

15781578
#:../../library/multiprocessing.rst:1019
15791579
msgid":func:`os.cpu_count` :func:`os.process_cpu_count`"
1580-
msgstr""
1580+
msgstr":func:`os.cpu_count` :func:`os.process_cpu_count`"
15811581

15821582
#:../../library/multiprocessing.rst:1024
15831583
msgid""

‎library/os.po

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

45794579
#:../../library/os.rst:4021
45804580
msgid":manpage:`timerfd_gettime(2)`"
4581-
msgstr""
4581+
msgstr":manpage:`timerfd_gettime(2)`"
45824582

45834583
#:../../library/os.rst:4030
45844584
msgid"Similar to :func:`timerfd_gettime`, but return time as nanoseconds."

‎library/types.po

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

359359
#:../../library/types.rst:269
360360
msgid":func:`importlib.util.module_from_spec`"
361-
msgstr""
361+
msgstr":func:`importlib.util.module_from_spec`"
362362

363363
#:../../library/types.rst:270
364364
msgid""

‎library/typing.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5800,7 +5800,7 @@ msgstr ":pep:`695`"
58005800

58015801
#:../../library/typing.rst:3916
58025802
msgid":func:`@typing.no_type_check_decorator <no_type_check_decorator>`"
5803-
msgstr""
5803+
msgstr":func:`@typing.no_type_check_decorator <no_type_check_decorator>`"
58045804

58055805
#:../../library/typing.rst:3917../../library/typing.rst:3921
58065806
msgid"3.13"

‎reference/lexical_analysis.po

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,9 +1382,8 @@ msgid "Footnotes"
13821382
msgstr"註解"
13831383

13841384
#:../../reference/lexical_analysis.rst:1046
1385-
#,fuzzy
13861385
msgid"https://www.unicode.org/Public/15.1.0/ucd/NameAliases.txt"
1387-
msgstr"https://www.unicode.org/Public/15.0.0/ucd/NameAliases.txt"
1386+
msgstr"https://www.unicode.org/Public/15.1.0/ucd/NameAliases.txt"
13881387

13891388
#:../../reference/lexical_analysis.rst:8
13901389
msgid"lexical analysis"

‎whatsnew/3.12.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ msgid ""
3535
"`changelog <changelog>`."
3636
msgstr""
3737
"本文介紹了 Python 3.12 與 3.11 相比多了哪些新功能。 Python 3.12 於 2023 年 "
38-
"10 月 2 日發布。完整詳請請見 :ref:`changelog <changelog>`。"
38+
"10 月 2 日發布。完整詳情請見 :ref:`changelog <changelog>`。"
3939

4040
#:../../whatsnew/3.12.rst:54
4141
msgid":pep:`693` -- Python 3.12 Release Schedule"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp