@@ -339,14 +339,14 @@ msgstr "增加了 *workers* 形参。"
339339#: ../../library/compileall.rst:212 ../../library/compileall.rst:278
340340#: ../../library/compileall.rst:307
341341msgid "*quiet* parameter was changed to a multilevel value."
342- msgstr ""
342+ msgstr "*quiet* 形参已改为多级别值。 "
343343
344344#: ../../library/compileall.rst:215 ../../library/compileall.rst:281
345345#: ../../library/compileall.rst:310
346346msgid ""
347347"The *legacy* parameter only writes out ``.pyc`` files, not ``.pyo`` files no"
348348" matter what the value of *optimize* is."
349- msgstr ""
349+ msgstr "*legacy* 形参将只写入 ``.pyc`` 文件而非 ``.pyo`` 文件,无论 *optimize* 的值是什么。 "
350350
351351#: ../../library/compileall.rst:219
352352msgid "Accepts a :term:`path-like object`."
@@ -355,29 +355,31 @@ msgstr "接受一个 :term:`类路径对象 <path-like object>`。"
355355#: ../../library/compileall.rst:222 ../../library/compileall.rst:285
356356#: ../../library/compileall.rst:314
357357msgid "The *invalidation_mode* parameter was added."
358- msgstr ""
358+ msgstr "增加了 *invalidation_mode* 形参。 "
359359
360360#: ../../library/compileall.rst:225 ../../library/compileall.rst:288
361361#: ../../library/compileall.rst:317
362362msgid "The *invalidation_mode* parameter's default value is updated to None."
363- msgstr ""
363+ msgstr "*invalidation_mode* 形参的默认值更新为 None。 "
364364
365365#: ../../library/compileall.rst:228
366366msgid "Setting *workers* to 0 now chooses the optimal number of cores."
367- msgstr ""
367+ msgstr "将 *workers* 设为 0 现在将会选择最优核心数量。 "
368368
369369#: ../../library/compileall.rst:231
370370msgid ""
371371"Added *stripdir*, *prependdir*, *limit_sl_dest* and *hardlink_dupes* "
372372"arguments. Default value of *maxlevels* was changed from ``10`` to "
373373"``sys.getrecursionlimit()``"
374374msgstr ""
375+ "增加了 *stripdir*, *prependdir*, *limit_sl_dest* 和 *hardlink_dupes* 参数。 "
376+ "*maxlevels* 的默认值从 ``10`` 改为 ``sys.getrecursionlimit()``"
375377
376378#: ../../library/compileall.rst:237
377379msgid ""
378380"Compile the file with path *fullname*. Return a true value if the file "
379381"compiled successfully, and a false value otherwise."
380- msgstr ""
382+ msgstr "编译路径为 *fullname* 的文件。 如果文件编译成功则返回真值,否则返回假值。 "
381383
382384#: ../../library/compileall.rst:240
383385msgid ""
@@ -387,6 +389,8 @@ msgid ""
387389"where the source file does not exist at the time the byte-code file is "
388390"executed."
389391msgstr ""
392+ "如果给出了 "
393+ "*ddir*,它会被附加到被编译的文件的路径之前以便在编译时回溯中使用,同时还会被编译到字节码文件中,届时它将在字节码文件被执行而源文件已不存在的情况下被用于回溯和其他消息中。"
390394
391395#: ../../library/compileall.rst:246
392396msgid ""
@@ -396,19 +400,21 @@ msgid ""
396400"matching a regular expression, given as a :ref:`re.Pattern <re-objects>` "
397401"object."
398402msgstr ""
403+ "如果给出了 *rx*,则会向它的 ``search`` 方法传入准备编译的文件的完整路径,并且如果它返回真值,则不编译该文件并返回 ``True``。 "
404+ "这可被用来排除与一个正则表达式相匹配的文件,正则表达式将以 :ref:`re.Pattern <re-objects>` 对象的形式给出。"
399405
400406#: ../../library/compileall.rst:291
401407msgid ""
402408"Added *stripdir*, *prependdir*, *limit_sl_dest* and *hardlink_dupes* "
403409"arguments."
404- msgstr ""
410+ msgstr "增加了 *stripdir*, *prependdir*, *limit_sl_dest* 和 *hardlink_dupes* 参数。 "
405411
406412#: ../../library/compileall.rst:296
407413msgid ""
408414"Byte-compile all the :file:`.py` files found along ``sys.path``. Return a "
409415"true value if all the files compiled successfully, and a false value "
410416"otherwise."
411- msgstr ""
417+ msgstr "将在 ``sys.path`` 中找到的所有 :file:`.py` 文件编译为字节码。 如果所有文件编译成功则返回真值,否则返回假值。 "
412418
413419#: ../../library/compileall.rst:299
414420msgid ""
@@ -417,17 +423,19 @@ msgid ""
417423":func:`compile_dir` function. Note that unlike the other compile functions,"
418424" ``maxlevels`` defaults to ``0``."
419425msgstr ""
426+ "如果 *skip_curdir* 为真值(默认),则当前目录不会被包括在搜索中。 所有其他形参将被传递给 :func:`compile_dir` 函数。"
427+ " 请注意不同于其他编译函数,``maxlevels`` 默认为 ``0``。"
420428
421429#: ../../library/compileall.rst:320
422430msgid ""
423431"To force a recompile of all the :file:`.py` files in the :file:`Lib/` "
424432"subdirectory and all its subdirectories::"
425- msgstr ""
433+ msgstr "强制重新编译 :file:`Lib/` 子目录及其所有子目录下的全部 :file:`.py` 文件:: "
426434
427435#: ../../library/compileall.rst:337
428436msgid "Module :mod:`py_compile`"
429437msgstr "模块 :mod:`py_compile`"
430438
431439#: ../../library/compileall.rst:338
432440msgid "Byte-compile a single source file."
433- msgstr ""
441+ msgstr "将单个源文件编译为字节码。 "
0 commit comments