8000 sync with cpython 7cbcfbe2 · python/python-docs-zh-tw@8066fd1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8066fd1

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 7cbcfbe2
1 parent 0aa9142 commit 8066fd1

File tree

4 files changed

+265
-204
lines changed

4 files changed

+265
-204
lines changed

c-api/code.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2022-10-15 20:43+0000\n"
10+
"POT-Creation-Date: 2023-02-05 00:18+0000\n"
1111
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
1212
"Last-Translator: Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -105,36 +105,36 @@ msgstr ""
105105
msgid "Returns ``1`` if the function succeeds and 0 otherwise."
106106
msgstr ""
107107

108-
#: ../../c-api/code.rst:82
108+
#: ../../c-api/code.rst:84
109109
msgid ""
110110
"Equivalent to the Python code ``getattr(co, 'co_code')``. Returns a strong "
111111
"reference to a :c:type:`PyBytesObject` representing the bytecode in a code "
112112
"object. On error, ``NULL`` is returned and an exception is raised."
113113
msgstr ""
114114

115-
#: ../../c-api/code.rst:87
115+
#: ../../c-api/code.rst:89
116116
msgid ""
117117
"This ``PyBytesObject`` may be created on-demand by the interpreter and does "
118118
"not necessarily represent the bytecode actually executed by CPython. The "
119119
"primary use case for this function is debuggers and profilers."
120120
msgstr ""
121121

122-
#: ../../c-api/code.rst:95
122+
#: ../../c-api/code.rst:97
123123
msgid ""
124124
"Equivalent to the Python code ``getattr(co, 'co_varnames')``. Returns a new "
125125
"reference to a :c:type:`PyTupleObject` containing the names of the local "
126 8000 126
"variables. On error, ``NULL`` is returned and an exception is raised."
127127
msgstr ""
128128

129-
#: ../../c-api/code.rst:104
129+
#: ../../c-api/code.rst:106
130130
msgid ""
131131
"Equivalent to the Python code ``getattr(co, 'co_cellvars')``. Returns a new "
132132
"reference to a :c:type:`PyTupleObject` containing the names of the local "
133133
"variables that are referenced by nested functions. On error, ``NULL`` is "
134134
"returned and an exception is raised."
135135
msgstr ""
136136

137-
#: ../../c-api/code.rst:113
137+
#: ../../c-api/code.rst:115
138138
msgid ""
139139
"Equivalent to the Python code ``getattr(co, 'co_freevars')``. Returns a new "
140140
"reference to a :c:type:`PyTupleObject` containing the names of the free "

library/faulthandler.po

Lines changed: 50 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.11\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2021-10-26 16:47+0000\n"
10+
"POT-Creation-Date: 2023-02-05 00:18+0000\n"
1111
"PO-Revision-Date: 2018-05-23 16:01+0000\n"
1212
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -92,64 +92,87 @@ msgid ""
9292
"enable` at Python startup."
9393
msgstr ""
9494

95-
#: ../../library/faulthandler.rst:48
96-
msgid "Dumping the traceback"
95+
#: ../../library/faulthandler.rst:49
96+
msgid "Module :mod:`pdb`"
97+
msgstr ""
98+
99+
#: ../../library/faulthandler.rst:49
100+
msgid "Interactive source code debugger for Python programs."
101+
msgstr ""
102+
103+
#: ../../library/faulthandler.rst:51
104+
msgid "Module :mod:`traceback`"
97105
msgstr ""
98106

99107
#: ../../library/faulthandler.rst:52
100108
msgid ""
109+
"Standard interface to extract, format and print stack traces of Python "
110+
"programs."
111+
msgstr ""
112+
113+
#: ../../library/faulthandler.rst:55
114+
msgid "Dumping the traceback"
115+
msgstr ""
116+
117+
#: ../../library/faulthandler.rst:59
118+
msgid ""
101119
"Dump the tracebacks of all threads into *file*. If *all_threads* is "
102120
"``False``, dump only the current thread."
103121
msgstr ""
104122

105-
#: ../../library/faulthandler.rst:55 ../../library/faulthandler.rst:73
106-
#: ../../library/faulthandler.rst:115 ../../library/faulthandler.rst:137
123+
#: ../../library/faulthandler.rst:62
124+
msgid ""
125+
":func:`traceback.print_tb`, which can be used to print a traceback object."
126+
msgstr ""
127+
128+
#: ../../library/faulthandler.rst:64 ../../library/faulthandler.rst:82
129+
#: ../../library/faulthandler.rst:124 ../../library/faulthandler.rst:146
107130
msgid "Added support for passing file descriptor to this function."
108131
msgstr ""
109132

110-
#: ../../library/faulthandler.rst:60
133+
#: ../../library/faulthandler.rst:69
111134
msgid "Fault handler state"
112135
msgstr ""
113136

114-
#: ../../library/faulthandler.rst:64
137+
#: ../../library/faulthandler.rst:73
115138
msgid ""
116139
"Enable the fault handler: install handlers for the :const:`SIGSEGV`, :const:"
117140
"`SIGFPE`, :const:`SIGABRT`, :const:`SIGBUS` and :const:`SIGILL` signals to "
118141
"dump the Python traceback. If *all_threads* is ``True``, produce tracebacks "
119142
"for every running thread. Otherwise, dump only the current thread."
120143
msgstr ""
121144

122-
#: ../../library/faulthandler.rst:70
145+
#: ../../library/faulthandler.rst:79
123146
msgid ""
124147
"The *file* must be kept open until the fault handler is disabled: see :ref: F438 "
125148
"`issue with file descriptors <faulthandler-fd>`."
126149
msgstr ""
127150

128-
#: ../../library/faulthandler.rst:76
151+
#: ../../library/faulthandler.rst:85
129152
msgid "On Windows, a handler for Windows exception is also installed."
130153
msgstr ""
131154

132-
#: ../../library/faulthandler.rst:79
155+
#: ../../library/faulthandler.rst:88
133156
msgid ""
134157
"The dump now mentions if a garbage collector collection is running if "
135158
"*all_threads* is true."
136159
msgstr ""
137160

138-
#: ../../library/faulthandler.rst:85
161+
#: ../../library/faulthandler.rst:94
139162
msgid ""
140163
"Disable the fault handler: uninstall the signal handlers installed by :func:"
141164
"`enable`."
142165
msgstr ""
143166

144-
#: ../../library/faulthandler.rst:90
167+
#: ../../library/faulthandler.rst:99
145168
msgid "Check if the fault handler is enabled."
146169
msgstr ""
147170

148-
#: ../../library/faulthandler.rst:94
171+
#: ../../library/faulthandler.rst:103
149172
msgid "Dumping the tracebacks after a timeout"
150173
msgstr ""
151174

152-
#: ../../library/faulthandler.rst:98
175+
#: ../../library/faulthandler.rst:107
153176
msgid ""
154177
"Dump the tracebacks of all threads, after a timeout of *timeout* seconds, or "
155178
"every *timeout* seconds if *repeat* is ``True``. If *exit* is ``True``, "
@@ -160,58 +183,58 @@ msgid ""
160183
"a sub-second resolution."
161184
msgstr ""
162185

163-
#: ../../library/faulthandler.rst:106
186+
#: ../../library/faulthandler.rst:115
164187
msgid ""
165188
"The *file* must be kept open until the traceback is dumped or :func:"
166189
"`cancel_dump_traceback_later` is called: see :ref:`issue with file "
167190
"descriptors <faulthandler-fd>`."
168191
msgstr ""
169192

170-
#: ../../library/faulthandler.rst:110
193+
#: ../../library/faulthandler.rst:119
171194
msgid "This function is implemented using a watchdog thread."
172195
msgstr ""
173196

174-
#: ../../library/faulthandler.rst:112
197+
#: ../../library/faulthandler.rst:121
175198
msgid "This function is now always available."
176199
msgstr ""
177200

178-
#: ../../library/faulthandler.rst:120
201+
#: ../../library/faulthandler.rst:129
179202
msgid "Cancel the last call to :func:`dump_traceback_later`."
180203
msgstr ""
181204

182-
#: ../../library/faulthandler.rst:124
205+
#: ../../library/faulthandler.rst:133
183206
msgid "Dumping the traceback on a user signal"
184207
msgstr ""
185208

186-
#: ../../library/faulthandler.rst:128
209+
#: ../../library/faulthandler.rst:137
187210
msgid ""
188211
"Register a user signal: install a handler for the *signum* signal to dump "
189212
"the traceback of all threads, or of the current thread if *all_threads* is "
190213
"``False``, into *file*. Call the previous handler if chain is ``True``."
191214
msgstr ""
192215

193-
#: ../../library/faulthandler.rst:132
216+
#: ../../library/faulthandler.rst:141
194217
msgid ""
195218
"The *file* must be kept open until the signal is unregistered by :func:"
196219
"`unregister`: see :ref:`issue with file descriptors <faulthandler-fd>`."
197220
msgstr ""
198221

199-
#: ../../library/faulthandler.rst:135 ../../library/faulthandler.rst:146
222+
#: ../../library/faulthandler.rst:144 ../../library/faulthandler.rst:155
200223
msgid "Not available on Windows."
201224
msgstr ""
202225

203-
#: ../../library/faulthandler.rst:142
226+
#: ../../library/faulthandler.rst:151
204227
msgid ""
205228
"Unregister a user signal: uninstall the handler of the *signum* signal "
206229
"installed by :func:`register`. Return ``True`` if the signal was registered, "
207230
"``False`` otherwise."
208231
msgstr ""
209232

210-
#: ../../library/faulthandler.rst:152
233+
#: ../../library/faulthandler.rst:161
211234
msgid "Issue with file descriptors"
212235
msgstr ""
213236

214-
#: ../../library/faulthandler.rst:154
237+
#: ../../library/faulthandler.rst:163
215238
msgid ""
216239
":func:`enable`, :func:`dump_traceback_later` and :func:`register` keep the "
217240
"file descriptor of their *file* argument. If the file is closed and its file "
@@ -220,11 +243,11 @@ msgid ""
220243
"Call these functions again each time that the file is replaced."
221244
msgstr ""
222245

223-
#: ../../library/faulthandler.rst:162
246+
#: ../../library/faulthandler.rst:171
224247
msgid "Example"
225248
msgstr "範例"
226249

227-
#: ../../library/faulthandler.rst:164
250+
#: ../../library/faulthandler.rst:173
228251
msgid ""
229252
"Example of a segmentation fault on Linux with and without enabling the fault "
230253
"handler:"

0 commit comments

Comments
 (0)
0