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

Commitbe1e430

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython c34c9e3b
1 parent6266dac commitbe1e430

File tree

8 files changed

+1894
-1834
lines changed

8 files changed

+1894
-1834
lines changed

‎c-api/exceptions.po

Lines changed: 306 additions & 304 deletions
Large diffs are not rendered by default.

‎library/exceptions.po

Lines changed: 220 additions & 184 deletions
Large diffs are not rendered by default.

‎library/os.po

Lines changed: 670 additions & 655 deletions
Large diffs are not rendered by default.

‎library/traceback.po

Lines changed: 93 additions & 87 deletions
Large diffs are not rendered by default.

‎reference/datamodel.po

Lines changed: 401 additions & 401 deletions
Large diffs are not rendered by default.

‎reference/simple_stmts.po

Lines changed: 139 additions & 139 deletions
Large diffs are not rendered by default.

‎whatsnew/3.0.po

Lines changed: 62 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2023-12-13 00:03+0000\n"
10+
"POT-Creation-Date:2023-12-14 00:03+0000\n"
1111
"PO-Revision-Date:2018-05-23 16:20+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -1007,8 +1007,8 @@ msgid ""
10071007
":pep:`3109`: Raising exceptions. You must now use :samp:`raise {Exception}"
10081008
"({args})` instead of :samp:`raise {Exception}, {args}`. Additionally, you "
10091009
"can no longer explicitly specify a traceback; instead, if you *have* to do "
1010-
"this, you can assign directly to the :attr:`__traceback__` attribute (see "
1011-
"below)."
1010+
"this, you can assign directly to the :attr:`~BaseException.__traceback__` "
1011+
"attribute (seebelow)."
10121012
msgstr""
10131013

10141014
#:../../whatsnew/3.0.rst:716
@@ -1026,84 +1026,85 @@ msgid ""
10261026
"an :keyword:`except` or :keyword:`finally` handler block. This usually "
10271027
"happens due to a bug in the handler block; we call this a *secondary* "
10281028
"exception. In this case, the original exception (that was being handled) is "
1029-
"saved as the :attr:`__context__` attribute of the secondary exception. "
1030-
"Explicit chaining is invoked with this syntax::"
1029+
"saved as the :attr:`~BaseException.__context__` attribute of the secondary "
1030+
"exception.Explicit chaining is invoked with this syntax::"
10311031
msgstr""
10321032

10331033
#:../../whatsnew/3.0.rst:733
10341034
msgid""
10351035
"(where *primary_exception* is any expression that produces an exception "
10361036
"object, probably an exception that was previously caught). In this case, the "
1037-
"primary exception is stored on the :attr:`__cause__` attribute of the "
1038-
"secondary exception. The traceback printed when an unhandled exception "
1039-
"occurs walks the chain of :attr:`__cause__` and :attr:`__context__`"
1040-
"attributes and prints a separate traceback for each component of the chain, "
1041-
"with the primary exception at the top. (Java users may recognize this "
1042-
"behavior.)"
1037+
"primary exception is stored on the :attr:`~BaseException.__cause__` "
1038+
"attribute of thesecondary exception. The traceback printed when an "
1039+
"unhandled exceptionoccurs walks the chain of :attr:`!__cause__` and :attr:"
1040+
"`~BaseException.__context__`attributes and prints a separate traceback for "
1041+
"each component of the chain,with the primary exception at the top. (Java "
1042+
"users may recognize thisbehavior.)"
10431043
msgstr""
10441044

1045-
#:../../whatsnew/3.0.rst:742
1045+
#:../../whatsnew/3.0.rst:743
10461046
msgid""
10471047
":pep:`3134`: Exception objects now store their traceback as the :attr:"
1048-
"`__traceback__` attribute. This means that an exception object now contains "
1049-
"all the information pertaining to an exception, and there are fewer reasons "
1050-
"to use :func:`sys.exc_info` (though the latter is not removed)."
1048+
"`~BaseException.__traceback__` attribute. This means that an exception "
1049+
"object now contains all the information pertaining to an exception, and "
1050+
"there are fewer reasons to use :func:`sys.exc_info` (though the latter is "
1051+
"not removed)."
10511052
msgstr""
10521053

1053-
#:../../whatsnew/3.0.rst:748
1054+
#:../../whatsnew/3.0.rst:749
10541055
msgid""
10551056
"A few exception messages are improved when Windows fails to load an "
10561057
"extension module. For example, ``error code 193`` is now ``%1 is not a "
10571058
"valid Win32 application``. Strings now deal with non-English locales."
10581059
msgstr""
10591060

1060-
#:../../whatsnew/3.0.rst:755
1061+
#:../../whatsnew/3.0.rst:756
10611062
msgid"Miscellaneous Other Changes"
10621063
msgstr""
10631064

1064-
#:../../whatsnew/3.0.rst:758
1065+
#:../../whatsnew/3.0.rst:759
10651066
msgid"Operators And Special Methods"
10661067
msgstr""
10671068

1068-
#:../../whatsnew/3.0.rst:760
1069+
#:../../whatsnew/3.0.rst:761
10691070
msgid""
10701071
"``!=`` now returns the opposite of ``==``, unless ``==`` returns :data:"
10711072
"`NotImplemented`."
10721073
msgstr""
10731074

1074-
#:../../whatsnew/3.0.rst:763
1075+
#:../../whatsnew/3.0.rst:764
10751076
msgid""
10761077
"The concept of\"unbound methods\" has been removed from the language. When "
10771078
"referencing a method as a class attribute, you now get a plain function "
10781079
"object."
10791080
msgstr""
10801081

1081-
#:../../whatsnew/3.0.rst:767
1082+
#:../../whatsnew/3.0.rst:768
10821083
msgid""
10831084
":meth:`__getslice__`, :meth:`__setslice__` and :meth:`__delslice__` were "
10841085
"killed. The syntax ``a[i:j]`` now translates to ``a.__getitem__(slice(i, "
10851086
"j))`` (or :meth:`__setitem__` or :meth:`__delitem__`, when used as an "
10861087
"assignment or deletion target, respectively)."
10871088
msgstr""
10881089

1089-
#:../../whatsnew/3.0.rst:773
1090+
#:../../whatsnew/3.0.rst:774
10901091
msgid""
10911092
":pep:`3114`: the standard :meth:`next` method has been renamed to :meth:"
10921093
"`~iterator.__next__`."
10931094
msgstr""
10941095

1095-
#:../../whatsnew/3.0.rst:776
1096+
#:../../whatsnew/3.0.rst:777
10961097
msgid""
10971098
"The :meth:`__oct__` and :meth:`__hex__` special methods are removed -- :func:"
10981099
"`oct` and :func:`hex` use :meth:`__index__` now to convert the argument to "
10991100
"an integer."
11001101
msgstr""
11011102

1102-
#:../../whatsnew/3.0.rst:780
1103+
#:../../whatsnew/3.0.rst:781
11031104
msgid"Removed support for :attr:`__members__` and :attr:`__methods__`."
11041105
msgstr"移除對 :attr:`__members__` 和 :attr:`__methods__` 的支援。"
11051106

1106-
#:../../whatsnew/3.0.rst:782
1107+
#:../../whatsnew/3.0.rst:783
11071108
msgid""
11081109
"The function attributes named :attr:`!func_X` have been renamed to use the :"
11091110
"attr:`!__X__` form, freeing up these names in the function attribute "
@@ -1115,15 +1116,15 @@ msgid ""
11151116
"`~function.__globals__`, :attr:`~function.__name__`, respectively."
11161117
msgstr""
11171118

1118-
#:../../whatsnew/3.0.rst:793
1119+
#:../../whatsnew/3.0.rst:794
11191120
msgid":meth:`!__nonzero__` is now :meth:`~object.__bool__`."
11201121
msgstr":meth:`!__nonzero__` 現在為 :meth:`~object.__bool__`。"
11211122

1122-
#:../../whatsnew/3.0.rst:796
1123+
#:../../whatsnew/3.0.rst:797
11231124
msgid"Builtins"
11241125
msgstr""
11251126

1126-
#:../../whatsnew/3.0.rst:798
1127+
#:../../whatsnew/3.0.rst:799
11271128
msgid""
11281129
":pep:`3135`: New :func:`super`. You can now invoke :func:`super` without "
11291130
"arguments and (assuming this is in a regular instance method defined inside "
@@ -1132,7 +1133,7 @@ msgid ""
11321133
"unchanged."
11331134
msgstr""
11341135

1135-
#:../../whatsnew/3.0.rst:804
1136+
#:../../whatsnew/3.0.rst:805
11361137
msgid""
11371138
":pep:`3111`: :func:`raw_input` was renamed to :func:`input`. That is, the "
11381139
"new :func:`input` function reads a line from :data:`sys.stdin` and returns "
@@ -1141,13 +1142,13 @@ msgid ""
11411142
"use ``eval(input())``."
11421143
msgstr""
11431144

1144-
#:../../whatsnew/3.0.rst:810
1145+
#:../../whatsnew/3.0.rst:811
11451146
msgid""
11461147
"A new built-in function :func:`next` was added to call the :meth:`~iterator."
11471148
"__next__` method on an object."
11481149
msgstr""
11491150

1150-
#:../../whatsnew/3.0.rst:813
1151+
#:../../whatsnew/3.0.rst:814
11511152
msgid""
11521153
"The :func:`round` function rounding strategy and return type have changed. "
11531154
"Exact halfway cases are now rounded to the nearest even result instead of "
@@ -1158,163 +1159,163 @@ msgid ""
11581159
"arguments."
11591160
msgstr""
11601161

1161-
#:../../whatsnew/3.0.rst:822
1162+
#:../../whatsnew/3.0.rst:823
11621163
msgid"Moved :func:`intern` to :func:`sys.intern`."
11631164
msgstr""
11641165

1165-
#:../../whatsnew/3.0.rst:824
1166+
#:../../whatsnew/3.0.rst:825
11661167
msgid""
11671168
"Removed: :func:`apply`. Instead of ``apply(f, args)`` use ``f(*args)``."
11681169
msgstr""
11691170

1170-
#:../../whatsnew/3.0.rst:827
1171+
#:../../whatsnew/3.0.rst:828
11711172
msgid""
11721173
"Removed :func:`callable`. Instead of ``callable(f)`` you can use "
11731174
"``isinstance(f, collections.Callable)``. The :func:`operator.isCallable` "
11741175
"function is also gone."
11751176
msgstr""
11761177

1177-
#:../../whatsnew/3.0.rst:831
1178+
#:../../whatsnew/3.0.rst:832
11781179
msgid""
11791180
"Removed :func:`coerce`. This function no longer serves a purpose now that "
11801181
"classic classes are gone."
11811182
msgstr""
11821183

1183-
#:../../whatsnew/3.0.rst:834
1184+
#:../../whatsnew/3.0.rst:835
11841185
msgid""
11851186
"Removed :func:`execfile`. Instead of ``execfile(fn)`` use ``exec(open(fn)."
11861187
"read())``."
11871188
msgstr""
11881189

1189-
#:../../whatsnew/3.0.rst:837
1190+
#:../../whatsnew/3.0.rst:838
11901191
msgid""
11911192
"Removed the :class:`file` type. Use :func:`open`. There are now several "
11921193
"different kinds of streams that open can return in the :mod:`io` module."
11931194
msgstr""
11941195

1195-
#:../../whatsnew/3.0.rst:840
1196+
#:../../whatsnew/3.0.rst:841
11961197
msgid""
11971198
"Removed :func:`reduce`. Use :func:`functools.reduce` if you really need it; "
11981199
"however, 99 percent of the time an explicit :keyword:`for` loop is more "
11991200
"readable."
12001201
msgstr""
12011202

1202-
#:../../whatsnew/3.0.rst:844
1203+
#:../../whatsnew/3.0.rst:845
12031204
msgid"Removed :func:`reload`. Use :func:`!imp.reload`."
12041205
msgstr""
12051206

1206-
#:../../whatsnew/3.0.rst:846
1207+
#:../../whatsnew/3.0.rst:847
12071208
msgid""
12081209
"Removed. :meth:`dict.has_key` -- use the :keyword:`in` operator instead."
12091210
msgstr""
12101211

1211-
#:../../whatsnew/3.0.rst:853
1212+
#:../../whatsnew/3.0.rst:854
12121213
msgid"Build and C API Changes"
12131214
msgstr""
12141215

1215-
#:../../whatsnew/3.0.rst:855
1216+
#:../../whatsnew/3.0.rst:856
12161217
msgid""
12171218
"Due to time constraints, here is a *very* incomplete list of changes to the "
12181219
"C API."
12191220
msgstr""
12201221

1221-
#:../../whatsnew/3.0.rst:858
1222+
#:../../whatsnew/3.0.rst:859
12221223
msgid""
12231224
"Support for several platforms was dropped, including but not limited to Mac "
12241225
"OS 9, BeOS, RISCOS, Irix, and Tru64."
12251226
msgstr""
12261227

1227-
#:../../whatsnew/3.0.rst:861
1228+
#:../../whatsnew/3.0.rst:862
12281229
msgid":pep:`3118`: New Buffer API."
12291230
msgstr""
12301231

1231-
#:../../whatsnew/3.0.rst:863
1232+
#:../../whatsnew/3.0.rst:864
12321233
msgid":pep:`3121`: Extension Module Initialization & Finalization."
12331234
msgstr""
12341235

1235-
#:../../whatsnew/3.0.rst:865
1236+
#:../../whatsnew/3.0.rst:866
12361237
msgid":pep:`3123`: Making :c:macro:`PyObject_HEAD` conform to standard C."
12371238
msgstr""
12381239

1239-
#:../../whatsnew/3.0.rst:867
1240+
#:../../whatsnew/3.0.rst:868
12401241
msgid"No more C API support for restricted execution."
12411242
msgstr""
12421243

1243-
#:../../whatsnew/3.0.rst:869
1244+
#:../../whatsnew/3.0.rst:870
12441245
msgid""
12451246
":c:func:`!PyNumber_Coerce`, :c:func:`!PyNumber_CoerceEx`, :c:func:`!"
12461247
"PyMember_Get`, and :c:func:`!PyMember_Set` C APIs are removed."
12471248
msgstr""
12481249

1249-
#:../../whatsnew/3.0.rst:872
1250+
#:../../whatsnew/3.0.rst:873
12501251
msgid""
12511252
"New C API :c:func:`PyImport_ImportModuleNoBlock`, works like :c:func:"
12521253
"`PyImport_ImportModule` but won't block on the import lock (returning an "
12531254
"error instead)."
12541255
msgstr""
12551256

1256-
#:../../whatsnew/3.0.rst:876
1257+
#:../../whatsnew/3.0.rst:877
12571258
msgid""
12581259
"Renamed the boolean conversion C-level slot and method: ``nb_nonzero`` is "
12591260
"now ``nb_bool``."
12601261
msgstr""
12611262

1262-
#:../../whatsnew/3.0.rst:879
1263+
#:../../whatsnew/3.0.rst:880
12631264
msgid""
12641265
"Removed :c:macro:`!METH_OLDARGS` and :c:macro:`!WITH_CYCLE_GC` from the C "
12651266
"API."
12661267
msgstr""
12671268
"移除 C API 中的 :c:macro:`!METH_OLDARGS` 和 :c:macro:`!WITH_CYCLE_GC`。"
12681269

1269-
#:../../whatsnew/3.0.rst:885
1270+
#:../../whatsnew/3.0.rst:886
12701271
msgid"Performance"
12711272
msgstr""
12721273

1273-
#:../../whatsnew/3.0.rst:887
1274+
#:../../whatsnew/3.0.rst:888
12741275
msgid""
12751276
"The net result of the 3.0 generalizations is that Python 3.0 runs the "
12761277
"pystone benchmark around 10% slower than Python 2.5. Most likely the "
12771278
"biggest cause is the removal of special-casing for small integers. There's "
12781279
"room for improvement, but it will happen after 3.0 is released!"
12791280
msgstr""
12801281

1281-
#:../../whatsnew/3.0.rst:897
1282+
#:../../whatsnew/3.0.rst:898
12821283
msgid"Porting To Python 3.0"
12831284
msgstr""
12841285

1285-
#:../../whatsnew/3.0.rst:899
1286+
#:../../whatsnew/3.0.rst:900
12861287
msgid""
12871288
"For porting existing Python 2.5 or 2.6 source code to Python 3.0, the best "
12881289
"strategy is the following:"
12891290
msgstr""
12901291

1291-
#:../../whatsnew/3.0.rst:902
1292+
#:../../whatsnew/3.0.rst:903
12921293
msgid"(Prerequisite:) Start with excellent test coverage."
12931294
msgstr""
12941295

1295-
#:../../whatsnew/3.0.rst:904
1296+
#:../../whatsnew/3.0.rst:905
12961297
msgid""
12971298
"Port to Python 2.6. This should be no more work than the average port from "
12981299
"Python 2.x to Python 2.(x+1). Make sure all your tests pass."
12991300
msgstr""
13001301

1301-
#:../../whatsnew/3.0.rst:908
1302+
#:../../whatsnew/3.0.rst:909
13021303
msgid""
13031304
"(Still using 2.6:) Turn on the :option:`!-3` command line switch. This "
13041305
"enables warnings about features that will be removed (or change) in 3.0. "
13051306
"Run your test suite again, and fix code that you get warnings about until "
13061307
"there are no warnings left, and all your tests still pass."
13071308
msgstr""
13081309

1309-
#:../../whatsnew/3.0.rst:914
1310+
#:../../whatsnew/3.0.rst:915
13101311
msgid""
13111312
"Run the ``2to3`` source-to-source translator over your source code tree. "
13121313
"(See :ref:`2to3-reference` for more on this tool.) Run the result of the "
13131314
"translation under Python 3.0. Manually fix up any remaining issues, fixing "
13141315
"problems until all tests pass again."
13151316
msgstr""
13161317

1317-
#:../../whatsnew/3.0.rst:919
1318+
#:../../whatsnew/3.0.rst:920
13181319
msgid""
13191320
"It is not recommended to try to write source code that runs unchanged under "
13201321
"both Python 2.6 and 3.0; you'd have to use a very contorted coding style, e."
@@ -1325,7 +1326,7 @@ msgid ""
13251326
"editing the 3.0 version of the source code."
13261327
msgstr""
13271328

1328-
#:../../whatsnew/3.0.rst:928
1329+
#:../../whatsnew/3.0.rst:929
13291330
msgid""
13301331
"For porting C extensions to Python 3.0, please see :ref:`cporting-howto`."
13311332
msgstr""

‎whatsnew/3.8.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.12\n"
1010
"Report-Msgid-Bugs-To:\n"
11-
"POT-Creation-Date:2023-10-20 00:03+0000\n"
11+
"POT-Creation-Date:2023-12-14 00:03+0000\n"
1212
"PO-Revision-Date:YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator:FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -106,8 +106,8 @@ msgid ""
106106
"There is a new function parameter syntax ``/`` to indicate that some "
107107
"function parameters must be specified positionally and cannot be used as "
108108
"keyword arguments. This is the same notation shown by ``help()`` for C "
109-
"functions annotated with Larry Hastings' `Argument Clinic <devguide.python."
110-
"org/development-tools/clinic/>`__ tool."
109+
"functions annotated with Larry Hastings' `Argument Clinic <https://devguide."
110+
"python.org/development-tools/clinic/>`__ tool."
111111
msgstr""
112112

113113
#:../../whatsnew/3.8.rst:128

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp