7
7
msgstr ""
8
8
"Project-Id-Version :Python 3.13\n "
9
9
"Report-Msgid-Bugs-To :\n "
10
- "POT-Creation-Date :2024-10-11 00:13 +0000\n "
10
+ "POT-Creation-Date :2025-06-02 00:16 +0000\n "
11
11
"PO-Revision-Date :2018-05-23 14:41+0000\n "
12
12
"Last-Translator :Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -89,48 +89,62 @@ msgid ""
89
89
"executed."
90
90
msgstr ""
91
91
92
- #: ../../library/compileall.rst:61
92
+ #: ../../library/compileall.rst:60
93
93
msgid ""
94
- "Remove (``-s``) or append (``-p``) the given prefix of paths recorded in the "
95
- "``.pyc`` files. Cannot be combined with ``-d``."
94
+ "Remove the given prefix from paths recorded in the ``.pyc`` files. Paths are "
95
+ "made relative to the prefix."
96
+ msgstr ""
97
+
98
+ #: ../../library/compileall.rst:63
99
+ msgid "This option can be used with ``-p`` but not with ``-d``."
96
100
msgstr ""
97
101
98
102
#: ../../library/compileall.rst:67
99
103
msgid ""
104
+ "Prepend the given prefix to paths recorded in the ``.pyc`` files. Use ``-p /"
105
+ "`` to make the paths absolute."
106
+ msgstr ""
107
+
108
+ #: ../../library/compileall.rst:70
109
+ msgid "This option can be used with ``-s`` but not with ``-d``."
110
+ msgstr ""
111
+
112
+ #: ../../library/compileall.rst:74
113
+ msgid ""
100
114
"regex is used to search the full path to each file considered for "
101
115
"compilation, and if the regex produces a match, the file is skipped."
102
116
msgstr ""
103
117
104
- #: ../../library/compileall.rst:72
118
+ #: ../../library/compileall.rst:79
105
119
msgid ""
106
120
"Read the file ``list`` and add each line that it contains to the list of "
107
121
"files and directories to compile. If ``list`` is ``-``, read lines from "
108
122
"``stdin``."
109
123
msgstr ""
110
124
111
- #: ../../library/compileall.rst:78
125
+ #: ../../library/compileall.rst:85
112
126
msgid ""
113
127
"Write the byte-code files to their legacy locations and names, which may "
114
128
"overwrite byte-code files created by another version of Python. The default "
115
129
"is to write files to their :pep:`3147` locations and names, which allows "
116
130
"byte-code files from multiple versions of Python to coexist."
117
131
msgstr ""
118
132
119
- #: ../../library/compileall.rst:85
133
+ #: ../../library/compileall.rst:92
120
134
msgid ""
121
135
"Control the maximum recursion level for subdirectories. If this is given, "
122
136
"then ``-l`` option will not be taken into account. :program:`python -m "
123
137
"compileall <directory> -r 0` is equivalent to :program:`python -m compileall "
124
138
"<directory> -l`."
125
139
msgstr ""
126
140
127
- #: ../../library/compileall.rst:92
141
+ #: ../../library/compileall.rst:99
128
142
msgid ""
129
143
"Use *N* workers to compile the files within the given directory. If ``0`` is "
130
144
"used, then the result of :func:`os.process_cpu_count` will be used."
131
145
msgstr ""
132
146
133
- #: ../../library/compileall.rst:98
147
+ #: ../../library/compileall.rst:105
134
148
msgid ""
135
149
"Control how the generated byte-code files are invalidated at runtime. The "
136
150
"``timestamp`` value, means that ``.pyc`` files with the source timestamp and "
@@ -143,78 +157,78 @@ msgid ""
143
157
"the ``SOURCE_DATE_EPOCH`` environment variable is set."
144
158
msgstr ""
145
159
146
- #: ../../library/compileall.rst:111
160
+ #: ../../library/compileall.rst:118
147
161
msgid ""
148
162
"Compile with the given optimization level. May be used multiple times to "
149
163
"compile for multiple levels at a time (for example, ``compileall -o 1 -o "
150
164
"2``)."
151
165
msgstr ""
152
166
153
- #: ../../library/compileall.rst:117
167
+ #: ../../library/compileall.rst:124
154
168
msgid "Ignore symlinks pointing outside the given directory."
155
169
msgstr ""
156
170
157
- #: ../../library/compileall.rst:121
171
+ #: ../../library/compileall.rst:128
158
172
msgid ""
159
173
"If two ``.pyc`` files with different optimization level have the same "
160
174
"content, use hard links to consolidate duplicate files."
161
175
msgstr ""
162
176
163
- #: ../../library/compileall.rst:124
177
+ #: ../../library/compileall.rst:131
164
178
msgid "Added the ``-i``, ``-b`` and ``-h`` options."
165
179
msgstr "新增選項 ``-i``、``-b`` 與 ``-h``。"
166
180
167
- #: ../../library/compileall.rst:127
181
+ #: ../../library/compileall.rst:134
168
182
msgid ""
169
183
"Added the ``-j``, ``-r``, and ``-qq`` options. ``-q`` option was changed "
170
184
"to a multilevel value. ``-b`` will always produce a byte-code file ending "
171
185
"in ``.pyc``, never ``.pyo``."
172
186
msgstr ""
173
187
174
- #: ../../library/compileall.rst:132
188
+ #: ../../library/compileall.rst:139
175
189
msgid "Added the ``--invalidation-mode`` option."
176
190
msgstr "新增選項 ``--invalidation-mode``。"
177
191
178
- #: ../../library/compileall.rst:135
192
+ #: ../../library/compileall.rst:142
179
193
msgid ""
180
194
"Added the ``-s``, ``-p``, ``-e`` and ``--hardlink-dupes`` options. Raised "
181
195
"the default recursion limit from 10 to :py:func:`sys.getrecursionlimit()`. "
182
196
"Added the possibility to specify the ``-o`` option multiple times."
183
197
msgstr ""
184
198
185
- #: ../../library/compileall.rst:142
199
+ #: ../../library/compileall.rst:149
186
200
msgid ""
187
201
"There is no command-line option to control the optimization level used by "
188
202
"the :func:`compile` function, because the Python interpreter itself already "
189
203
"provides the option: :program:`python -O -m compileall`."
190
204
msgstr ""
191
205
192
- #: ../../library/compileall.rst:146
206
+ #: ../../library/compileall.rst:153
193
207
msgid ""
194
208
"Similarly, the :func:`compile` function respects the :data:`sys."
195
209
"pycache_prefix` setting. The generated bytecode cache will only be useful "
196
210
"if :func:`compile` is run with the same :data:`sys.pycache_prefix` (if any) "
197
211
"that will be used at runtime."
198
212
msgstr ""
199
213
200
- #: ../../library/compileall.rst:152
214
+ #: ../../library/compileall.rst:159
201
215
msgid "Public functions"
202
216
msgstr ""
203
217
204
- #: ../../library/compileall.rst:156
218
+ #: ../../library/compileall.rst:163
205
219
msgid ""
206
220
"Recursively descend the directory tree named by *dir*, compiling all :file:`."
207
221
"py` files along the way. Return a true value if all the files compiled "
208
222
"successfully, and a false value otherwise."
209
223
msgstr ""
210
224
211
- #: ../../library/compileall.rst:160
225
+ #: ../../library/compileall.rst:167
212
226
msgid ""
213
227
"The *maxlevels* parameter is used to limit the depth of the recursion; it "
214
228
"defaults to ``sys.getrecursionlimit()``."
215
229
msgstr ""
216
230
217
- #: ../../library/compileall.rst:163
231
+ #: ../../library/compileall.rst:170
218
232
msgid ""
219
233
"If *ddir* is given, it is prepended to the path to each file being compiled "
220
234
"for use in compilation time tracebacks, and is also compiled in to the byte-"
@@ -223,28 +237,28 @@ msgid ""
223
237
"executed."
224
238
msgstr ""
225
239
226
- #: ../../library/compileall.rst:169
240
+ #: ../../library/compileall.rst:176
227
241
msgid ""
228
242
"If *force* is true, modules are re-compiled even if the timestamps are up to "
229
243
"date."
230
244
msgstr ""
231
245
232
- #: ../../library/compileall.rst:172
246
+ #: ../../library/compileall.rst:179
233
247
msgid ""
234
248
"If *rx* is given, its ``search`` method is called on the complete path to "
235
249
"each file considered for compilation, and if it returns a true value, the "
236
250
"file is skipped. This can be used to exclude files matching a regular "
237
251
"expression, given as a :ref:`re.Pattern <re-objects>` object."
238
252
msgstr ""
239
253
240
- #: ../../library/compileall.rst:177 ../../library/compileall.rst:254
254
+ #: ../../library/compileall.rst:184 ../../library/compileall.rst:261
241
255
msgid ""
242
256
"If *quiet* is ``False`` or ``0`` (the default), the filenames and other "
243
257
"information are printed to standard out. Set to ``1``, only errors are "
244
258
"printed. Set to ``2``, all output is suppressed."
245
259
msgstr ""
246
260
247
- #: ../../library/compileall.rst:181 ../../library/compileall.rst:258
261
+ #: ../../library/compileall.rst:188 ../../library/compileall.rst:265
248
262
msgid ""
249
263
"If *legacy* is true, byte-code files are written to their legacy locations "
250
264
"and names, which may overwrite byte-code files created by another version of "
@@ -253,15 +267,15 @@ msgid ""
253
267
"coexist."
254
268
msgstr ""
255
269
256
- #: ../../library/compileall.rst:187 ../../library/compileall.rst:264
270
+ #: ../../library/compileall.rst:194 ../../library/compileall.rst:271
257
271
msgid ""
258
272
"*optimize* specifies the optimization level for the compiler. It is passed "
259
273
"to the built-in :func:`compile` function. Accepts also a sequence of "
260
274
"optimization levels which lead to multiple compilations of one :file:`.py` "
261
275
"file in one call."
262
276
msgstr ""
263
277
264
- #: ../../library/compileall.rst:191
278
+ #: ../../library/compileall.rst:198
265
279
msgid ""
266
280
"The argument *workers* specifies how many workers are used to compile files "
267
281
"in parallel. The default is to not use multiple workers. If the platform "
@@ -271,80 +285,80 @@ msgid ""
271
285
"`ValueError` will be raised."
272
286
msgstr ""
273
287
274
- #: ../../library/compileall.rst:198 ../../library/compileall.rst:268
288
+ #: ../../library/compileall.rst:205 ../../library/compileall.rst:275
275
289
msgid ""
276
290
"*invalidation_mode* should be a member of the :class:`py_compile."
277
291
"PycInvalidationMode` enum and controls how the generated pycs are "
278
292
"invalidated at runtime."
279
293
msgstr ""
280
294
281
- #: ../../library/compileall.rst:202 ../../library/compileall.rst:272
295
+ #: ../../library/compileall.rst:209 ../../library/compileall.rst:279
282
296
msgid ""
283
297
"The *stripdir*, *prependdir* and *limit_sl_dest* arguments correspond to the "
284
298
"``-s``, ``-p`` and ``-e`` options described above. They may be specified as "
285
299
"``str`` or :py:class:`os.PathLike`."
286
300
msgstr ""
287
301
288
- #: ../../library/compileall.rst:206 ../../library/compileall.rst:276
302
+ #: ../../library/compileall.rst:213 ../../library/compileall.rst:283
289
303
msgid ""
290
304
"If *hardlink_dupes* is true and two ``.pyc`` files with different "
291
305
"optimization level have the same content, use hard links to consolidate "
292
306
"duplicate files."
293
307
msgstr ""
294
308
295
- #: ../../library/compileall.rst:209 ../../library/compileall.rst:307
309
+ #: ../../library/compileall.rst:216 ../../library/compileall.rst:314
296
310
msgid "Added the *legacy* and *optimize* parameter."
297
311
msgstr "新增 *legacy* 與 *optimize* 參數。"
298
312
299
- #: ../../library/compileall.rst:212
313
+ #: ../../library/compileall.rst:219
300
314
msgid "Added the *workers* parameter."
301
315
msgstr "新增 *workers* 參數。"
302
316
303
- #: ../../library/compileall.rst:215 ../../library/compileall.rst:281
304
- #: ../../library/compileall.rst:310
317
+ #: ../../library/compileall.rst:222 ../../library/compileall.rst:288
318
+ #: ../../library/compileall.rst:317
305
319
msgid "*quiet* parameter was changed to a multilevel value."
306
320
msgstr ""
307
321
308
- #: ../../library/compileall.rst:218 ../../library/compileall.rst:284
309
- #: ../../library/compileall.rst:313
322
+ #: ../../library/compileall.rst:225 ../../library/compileall.rst:291
323
+ #: ../../library/compileall.rst:320
310
324
msgid ""
311
325
"The *legacy* parameter only writes out ``.pyc`` files, not ``.pyo`` files no "
312
326
"matter what the value of *optimize* is."
313
327
msgstr ""
314
328
315
- #: ../../library/compileall.rst:222
329
+ #: ../../library/compileall.rst:229
316
330
msgid "Accepts a :term:`path-like object`."
317
331
msgstr ""
318
332
319
- #: ../../library/compileall.rst:225 ../../library/compileall.rst:288
320
- #: ../../library/compileall.rst:317
333
+ #: ../../library/compileall.rst:232 ../../library/compileall.rst:295
334
+ #: ../../library/compileall.rst:324
321
335
msgid "The *invalidation_mode* parameter was added."
322
336
msgstr "新增 *invalidation_mode* 參數。"
323
337
324
- #: ../../library/compileall.rst:228 ../../library/compileall.rst:291
325
- #: ../../library/compileall.rst:320
338
+ #: ../../library/compileall.rst:235 ../../library/compileall.rst:298
339
+ #: ../../library/compileall.rst:327
326
340
msgid ""
327
341
"The *invalidation_mode* parameter's default value is updated to ``None``."
328
342
msgstr "新增 *invalidation_mode* 參數的預設值被更新為 ``None``。"
329
343
330
- #: ../../library/compileall.rst:231
344
+ #: ../../library/compileall.rst:238
331
345
msgid "Setting *workers* to 0 now chooses the optimal number of cores."
332
346
msgstr ""
333
347
334
- #: ../../library/compileall.rst:234
348
+ #: ../../library/compileall.rst:241
335
349
msgid ""
336
350
"Added *stripdir*, *prependdir*, *limit_sl_dest* and *hardlink_dupes* "
337
351
"arguments. Default value of *maxlevels* was changed from ``10`` to ``sys."
338
352
"getrecursionlimit()``"
339
353
msgstr ""
340
354
341
- #: ../../library/compileall.rst:240
355
+ #: ../../library/compileall.rst:247
342
356
msgid ""
343
357
"Compile the file with path *fullname*. Return a true value if the file "
344
358
"compiled successfully, and a false value otherwise."
345
359
msgstr ""
346
360
347
- #: ../../library/compileall.rst:243
361
+ #: ../../library/compileall.rst:250
348
362
msgid ""
349
363
"If *ddir* is given, it is prepended to the path to the file being compiled "
350
364
"for use in compilation time tracebacks, and is also compiled in to the byte-"
@@ -353,7 +367,7 @@ msgid ""
353
367
"executed."
354
368
msgstr ""
355
369
356
- #: ../../library/compileall.rst:249
370
+ #: ../../library/compileall.rst:256
357
371
msgid ""
358
372
"If *rx* is given, its ``search`` method is passed the full path name to the "
359
373
"file being compiled, and if it returns a true value, the file is not "
@@ -362,34 +376,34 @@ msgid ""
362
376
"object."
363
377
msgstr ""
364
378
365
- #: ../../library/compileall.rst:294
379
+ #: ../../library/compileall.rst:301
366
380
msgid ""
367
381
"Added *stripdir*, *prependdir*, *limit_sl_dest* and *hardlink_dupes* "
368
382
"arguments."
369
383
msgstr ""
370
384
371
- #: ../../library/compileall.rst:299
385
+ #: ../../library/compileall.rst:306
372
386
msgid ""
373
387
"Byte-compile all the :file:`.py` files found along ``sys.path``. Return a "
374
388
"true value if all the files compiled successfully, and a false value "
375
389
"otherwise."
376
390
msgstr ""
377
391
378
- #: ../../library/compileall.rst:302
392
+ #: ../../library/compileall.rst:309
379
393
msgid ""
380
394
"If *skip_curdir* is true (the default), the current directory is not "
381
395
"included in the search. All other parameters are passed to the :func:"
382
396
"`compile_dir` function. Note that unlike the other compile functions, "
383
397
"``maxlevels`` defaults to ``0``."
384
398
msgstr ""
385
399
386
- #: ../../library/compileall.rst:323
400
+ #: ../../library/compileall.rst:330
387
401
msgid ""
388
402
"To force a recompile of all the :file:`.py` files in the :file:`Lib/` "
389
403
"subdirectory and all its subdirectories::"
390
404
msgstr ""
391
405
392
- #: ../../library/compileall.rst:326
406
+ #: ../../library/compileall.rst:333
393
407
msgid ""
394
408
"import compileall\n"
395
409
"\n"
@@ -404,10 +418,10 @@ msgid ""
404
418
"compileall.compile_dir(pathlib.Path('Lib/'), force=True)"
405
419
msgstr ""
406
420
407
- #: ../../library/compileall.rst:340
421
+ #: ../../library/compileall.rst:347
408
422
msgid "Module :mod:`py_compile`"
409
423
msgstr ":mod:`py_compile` 模組"
410
424
411
- #: ../../library/compileall.rst:341
425
+ #: ../../library/compileall.rst:348
412
426
msgid "Byte-compile a single source file."
413
427
msgstr ""