Skip to content

Commit 0a9f020

Browse files
sync with cpython b220c1c0
1 parent b94c058 commit 0a9f020

File tree

4 files changed

+1744
-1480
lines changed

4 files changed

+1744
-1480
lines changed

library/dis.po

+57-60
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.13\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-04-19 00:14+0000\n"
10+
"POT-Creation-Date: 2025-04-24 05:58+0000\n"
1111
"PO-Revision-Date: 2018-07-27 16:55+0800\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -61,17 +61,17 @@ msgstr ""
6161
msgid ""
6262
"Some instructions are accompanied by one or more inline cache entries, which "
6363
"take the form of :opcode:`CACHE` instructions. These instructions are hidden "
64-
"by default, but can be shown by passing ``show_caches=True`` to "
65-
"any :mod:`dis` utility. Furthermore, the interpreter now adapts the bytecode "
66-
"to specialize it for different runtime conditions. The adaptive bytecode can "
67-
"be shown by passing ``adaptive=True``."
64+
"by default, but can be shown by passing ``show_caches=True`` to any :mod:"
65+
"`dis` utility. Furthermore, the interpreter now adapts the bytecode to "
66+
"specialize it for different runtime conditions. The adaptive bytecode can be "
67+
"shown by passing ``adaptive=True``."
6868
msgstr ""
6969

7070
#: ../../library/dis.rst:45
7171
msgid ""
7272
"The argument of a jump is the offset of the target instruction relative to "
73-
"the instruction that appears immediately after the jump "
74-
"instruction's :opcode:`CACHE` entries."
73+
"the instruction that appears immediately after the jump instruction's :"
74+
"opcode:`CACHE` entries."
7575
msgstr ""
7676

7777
#: ../../library/dis.rst:50
@@ -169,9 +169,9 @@ msgstr ""
169169

170170
#: ../../library/dis.rst:118
171171
msgid ""
172-
"The bytecode analysis API allows pieces of Python code to be wrapped in "
173-
"a :class:`Bytecode` object that provides easy access to details of the "
174-
"compiled code."
172+
"The bytecode analysis API allows pieces of Python code to be wrapped in a :"
173+
"class:`Bytecode` object that provides easy access to details of the compiled "
174+
"code."
175175
msgstr ""
176176

177177
#: ../../library/dis.rst:125
@@ -237,8 +237,8 @@ msgstr ""
237237

238238
#: ../../library/dis.rst:166
239239
msgid ""
240-
"Return a formatted view of the bytecode operations (the same as printed "
241-
"by :func:`dis.dis`, but returned as a multi-line string)."
240+
"Return a formatted view of the bytecode operations (the same as printed by :"
241+
"func:`dis.dis`, but returned as a multi-line string)."
242242
msgstr ""
243243

244244
#: ../../library/dis.rst:171
@@ -450,10 +450,10 @@ msgstr ""
450450

451451
#: ../../library/dis.rst:350
452452
msgid ""
453-
"This generator function uses the :meth:`~codeobject.co_lines` method of "
454-
"the :ref:`code object <code-objects>` *code* to find the offsets which are "
455-
"starts of lines in the source code. They are generated as ``(offset, "
456-
"lineno)`` pairs."
453+
"This generator function uses the :meth:`~codeobject.co_lines` method of the :"
454+
"ref:`code object <code-objects>` *code* to find the offsets which are starts "
455+
"of lines in the source code. They are generated as ``(offset, lineno)`` "
456+
"pairs."
457457
msgstr ""
458458

459459
#: ../../library/dis.rst:355
@@ -462,8 +462,8 @@ msgstr ""
462462

463463
#: ../../library/dis.rst:358
464464
msgid ""
465-
"The :pep:`626` :meth:`~codeobject.co_lines` method is used instead of "
466-
"the :attr:`~codeobject.co_firstlineno` and :attr:`~codeobject.co_lnotab` "
465+
"The :pep:`626` :meth:`~codeobject.co_lines` method is used instead of the :"
466+
"attr:`~codeobject.co_firstlineno` and :attr:`~codeobject.co_lnotab` "
467467
"attributes of the :ref:`code object <code-objects>`."
468468
msgstr ""
469469

@@ -914,10 +914,10 @@ msgstr ""
914914

915915
#: ../../library/dis.rst:779
916916
msgid ""
917-
"Handles an exception raised during a :meth:`~generator.throw` "
918-
"or :meth:`~generator.close` call through the current frame. If "
919-
"``STACK[-1]`` is an instance of :exc:`StopIteration`, pop three values from "
920-
"the stack and push its ``value`` member. Otherwise, re-raise ``STACK[-1]``."
917+
"Handles an exception raised during a :meth:`~generator.throw` or :meth:"
918+
"`~generator.close` call through the current frame. If ``STACK[-1]`` is an "
919+
"instance of :exc:`StopIteration`, pop three values from the stack and push "
920+
"its ``value`` member. Otherwise, re-raise ``STACK[-1]``."
921921
msgstr ""
922922

923923
#: ../../library/dis.rst:789
@@ -980,10 +980,10 @@ msgstr ""
980980

981981
#: ../../library/dis.rst:835
982982
msgid ""
983-
"For all of the :opcode:`SET_ADD`, :opcode:`LIST_APPEND` "
984-
"and :opcode:`MAP_ADD` instructions, while the added value or key/value pair "
985-
"is popped off, the container object remains on the stack so that it is "
986-
"available for further iterations of the loop."
983+
"For all of the :opcode:`SET_ADD`, :opcode:`LIST_APPEND` and :opcode:"
984+
"`MAP_ADD` instructions, while the added value or key/value pair is popped "
985+
"off, the container object remains on the stack so that it is available for "
986+
"further iterations of the loop."
987987
msgstr ""
988988

989989
#: ../../library/dis.rst:843
@@ -1030,8 +1030,8 @@ msgstr ""
10301030
#: ../../library/dis.rst:886
10311031
msgid ""
10321032
"Re-raises the exception currently on top of the stack. If oparg is non-zero, "
1033-
"pops an additional value from the stack which is used to "
1034-
"set :attr:`~frame.f_lasti` of the current frame."
1033+
"pops an additional value from the stack which is used to set :attr:`~frame."
1034+
"f_lasti` of the current frame."
10351035
msgstr ""
10361036

10371037
#: ../../library/dis.rst:897
@@ -1092,9 +1092,9 @@ msgstr ""
10921092
msgid ""
10931093
"This opcode performs several operations before a with block starts. First, "
10941094
"it loads :meth:`~object.__exit__` from the context manager and pushes it "
1095-
"onto the stack for later use by :opcode:`WITH_EXCEPT_START`. "
1096-
"Then, :meth:`~object.__enter__` is called. Finally, the result of calling "
1097-
"the ``__enter__()`` method is pushed onto the stack."
1095+
"onto the stack for later use by :opcode:`WITH_EXCEPT_START`. Then, :meth:"
1096+
"`~object.__enter__` is called. Finally, the result of calling the "
1097+
"``__enter__()`` method is pushed onto the stack."
10981098
msgstr ""
10991099

11001100
#: ../../library/dis.rst:964
@@ -1123,9 +1123,8 @@ msgstr ""
11231123
#: ../../library/dis.rst:992
11241124
msgid ""
11251125
"``STACK[-1]`` is a tuple of mapping keys, and ``STACK[-2]`` is the match "
1126-
"subject. If ``STACK[-2]`` contains all of the keys in ``STACK[-1]``, push "
1127-
"a :class:`tuple` containing the corresponding values. Otherwise, push "
1128-
"``None``."
1126+
"subject. If ``STACK[-2]`` contains all of the keys in ``STACK[-1]``, push a :"
1127+
"class:`tuple` containing the corresponding values. Otherwise, push ``None``."
11291128
msgstr ""
11301129

11311130
#: ../../library/dis.rst:998 ../../library/dis.rst:1684
@@ -1138,15 +1137,14 @@ msgstr ""
11381137
msgid ""
11391138
"Implements ``name = STACK.pop()``. *namei* is the index of *name* in the "
11401139
"attribute :attr:`~codeobject.co_names` of the :ref:`code object <code-"
1141-
"objects>`. The compiler tries to use :opcode:`STORE_FAST` "
1142-
"or :opcode:`STORE_GLOBAL` if possible."
1140+
"objects>`. The compiler tries to use :opcode:`STORE_FAST` or :opcode:"
1141+
"`STORE_GLOBAL` if possible."
11431142
msgstr ""
11441143

11451144
#: ../../library/dis.rst:1012
11461145
msgid ""
1147-
"Implements ``del name``, where *namei* is the index "
1148-
"into :attr:`~codeobject.co_names` attribute of the :ref:`code object <code-"
1149-
"objects>`."
1146+
"Implements ``del name``, where *namei* is the index into :attr:`~codeobject."
1147+
"co_names` attribute of the :ref:`code object <code-objects>`."
11501148
msgstr ""
11511149

11521150
#: ../../library/dis.rst:1018
@@ -1202,8 +1200,8 @@ msgstr ""
12021200

12031201
#: ../../library/dis.rst:1052
12041202
msgid ""
1205-
"where *namei* is the index of name in :attr:`~codeobject.co_names` of "
1206-
"the :ref:`code object <code-objects>`."
1203+
"where *namei* is the index of name in :attr:`~codeobject.co_names` of the :"
1204+
"ref:`code object <code-objects>`."
12071205
msgstr ""
12081206

12091207
#: ../../library/dis.rst:1059
@@ -1216,8 +1214,8 @@ msgstr ""
12161214

12171215
#: ../../library/dis.rst:1062
12181216
msgid ""
1219-
"where *namei* is the index of name into :attr:`~codeobject.co_names` of "
1220-
"the :ref:`code object <code-objects>`."
1217+
"where *namei* is the index of name into :attr:`~codeobject.co_names` of the :"
1218+
"ref:`code object <code-objects>`."
12211219
msgstr ""
12221220

12231221
#: ../../library/dis.rst:1068
@@ -1241,8 +1239,8 @@ msgstr ""
12411239
#: ../../library/dis.rst:1089
12421240
msgid ""
12431241
"Pushes a reference to the locals dictionary onto the stack. This is used to "
1244-
"prepare namespace dictionaries for :opcode:`LOAD_FROM_DICT_OR_DEREF` "
1245-
"and :opcode:`LOAD_FROM_DICT_OR_GLOBALS`."
1242+
"prepare namespace dictionaries for :opcode:`LOAD_FROM_DICT_OR_DEREF` and :"
1243+
"opcode:`LOAD_FROM_DICT_OR_GLOBALS`."
12461244
msgstr ""
12471245

12481246
#: ../../library/dis.rst:1098
@@ -1407,9 +1405,9 @@ msgstr ""
14071405

14081406
#: ../../library/dis.rst:1236
14091407
msgid ""
1410-
"The low bit of ``namei`` signals to attempt a method load, as "
1411-
"with :opcode:`LOAD_ATTR`, which results in pushing ``NULL`` and the loaded "
1412-
"method. When it is unset a single value is pushed to the stack."
1408+
"The low bit of ``namei`` signals to attempt a method load, as with :opcode:"
1409+
"`LOAD_ATTR`, which results in pushing ``NULL`` and the loaded method. When "
1410+
"it is unset a single value is pushed to the stack."
14131411
msgstr ""
14141412

14151413
#: ../../library/dis.rst:1240
@@ -1427,8 +1425,8 @@ msgstr ""
14271425

14281426
#: ../../library/dis.rst:1252
14291427
msgid ""
1430-
"The fifth-lowest bit of the oparg now indicates a forced conversion "
1431-
"to :class:`bool`."
1428+
"The fifth-lowest bit of the oparg now indicates a forced conversion to :"
1429+
"class:`bool`."
14321430
msgstr ""
14331431

14341432
#: ../../library/dis.rst:1259
@@ -1442,10 +1440,10 @@ msgstr ""
14421440
#: ../../library/dis.rst:1273
14431441
msgid ""
14441442
"Imports the module ``co_names[namei]``. ``STACK[-1]`` and ``STACK[-2]`` are "
1445-
"popped and provide the *fromlist* and *level* arguments "
1446-
"of :func:`__import__`. The module object is pushed onto the stack. The "
1447-
"current namespace is not affected: for a proper import statement, a "
1448-
"subsequent :opcode:`STORE_FAST` instruction modifies the namespace."
1443+
"popped and provide the *fromlist* and *level* arguments of :func:"
1444+
"`__import__`. The module object is pushed onto the stack. The current "
1445+
"namespace is not affected: for a proper import statement, a subsequent :"
1446+
"opcode:`STORE_FAST` instruction modifies the namespace."
14491447
msgstr ""
14501448

14511449
#: ../../library/dis.rst:1281
@@ -1599,8 +1597,8 @@ msgstr ""
15991597
msgid ""
16001598
"Pops a mapping off the stack and looks up the name associated with slot "
16011599
"``i`` of the \"fast locals\" storage in this mapping. If the name is not "
1602-
"found there, loads it from the cell contained in slot ``i``, similar "
1603-
"to :opcode:`LOAD_DEREF`. This is used for loading :term:`closure variables "
1600+
"found there, loads it from the cell contained in slot ``i``, similar to :"
1601+
"opcode:`LOAD_DEREF`. This is used for loading :term:`closure variables "
16041602
"<closure variable>` in class bodies (which previously used :opcode:`!"
16051603
"LOAD_CLASSDEREF`) and in :ref:`annotation scopes <annotation-scopes>` within "
16061604
"class bodies."
@@ -1844,7 +1842,7 @@ msgstr ""
18441842

18451843
#: ../../library/dis.rst:1640 ../../library/dis.rst:1653
18461844
#: ../../library/dis.rst:1666
1847-
msgid "Used for implementing formatted literal strings (f-strings)."
1845+
msgid "Used for implementing formatted string literals (f-strings)."
18481846
msgstr ""
18491847

18501848
#: ../../library/dis.rst:1647
@@ -2189,9 +2187,8 @@ msgstr ""
21892187
#: ../../library/dis.rst:1865
21902188
msgid ""
21912189
"This variant is used in :keyword:`with` and :keyword:`async with` "
2192-
"constructs, which push the return value of the context "
2193-
"manager's :meth:`~object.__enter__` or :meth:`~object.__aenter__` to the "
2194-
"stack."
2190+
"constructs, which push the return value of the context manager's :meth:"
2191+
"`~object.__enter__` or :meth:`~object.__aenter__` to the stack."
21952192
msgstr ""
21962193

21972194
#: ../../library/dis.rst:1872

0 commit comments

Comments
 (0)