@@ -157,10 +157,11 @@ msgid ""
157157" value of the *invalidation_mode* argument, and determines its default value"
158158" instead."
159159msgstr ""
160+ ":envvar:`SOURCE_DATE_EPOCH` 环境变量不会再覆盖 *invalidation_mode* 参数的值,而改为确定其默认值。"
160161
161162#: ../../library/py_compile.rst:92
162163msgid "The *quiet* parameter was added."
163- msgstr ""
164+ msgstr "增加了 *quiet* 形参。 "
164165
165166#: ../../library/py_compile.rst:98
166167msgid ""
@@ -170,33 +171,39 @@ msgid ""
170171"invalidation` for more information on how Python invalidates ``.pyc`` files "
171172"at runtime."
172173msgstr ""
174+ "一个由可用方法组成的枚举,解释器可以用来确定字节码文件是否与源文件保持一致。 ``.pyc`` 文件在其标头中指明了所需的失效模式。 请参阅 :ref"
175+ ":`pyc-invalidation` 了解有关 Python 在运行时如何让 ``.pyc`` 文件失效的更多信息。"
173176
174177#: ../../library/py_compile.rst:108
175178msgid ""
176179"The ``.pyc`` file includes the timestamp and size of the source file, which "
177180"Python will compare against the metadata of the source file at runtime to "
178181"determine if the ``.pyc`` file needs to be regenerated."
179182msgstr ""
183+ "``.pyc`` 文件包括时间戳和源文件的大小,Python 将在运行时将其与源文件的元数据进行比较以确定 ``.pyc`` 文件是否需要重新生成。"
180184
181185#: ../../library/py_compile.rst:114
182186msgid ""
183187"The ``.pyc`` file includes a hash of the source file content, which Python "
184188"will compare against the source at runtime to determine if the ``.pyc`` file"
185189" needs to be regenerated."
186190msgstr ""
191+ "``.pyc`` 文件包括源文件内容的哈希值,Python 将在运行时将其与源文件内容进行比较以确定 ``.pyc`` 文件是否需要重新生成。"
187192
188193#: ../../library/py_compile.rst:120
189194msgid ""
190195"Like :attr:`CHECKED_HASH`, the ``.pyc`` file includes a hash of the source "
191196"file content. However, Python will at runtime assume the ``.pyc`` file is up"
192197" to date and not validate the ``.pyc`` against the source file at all."
193198msgstr ""
199+ "类似于 :attr:`CHECKED_HASH`,``.pyc`` 文件包括源文件内容的哈希值。 但是,Python 将在运行时假定 ``.pyc`` "
200+ "文件是最新的而完全不会将 ``.pyc`` 与源文件进行验证。"
194201
195202#: ../../library/py_compile.rst:124
196203msgid ""
197204"This option is useful when the ``.pycs`` are kept up to date by some system "
198205"external to Python like a build system."
199- msgstr ""
206+ msgstr "此选项适用于 ``.pycs`` 由 Python 以外的某个系统例如构建系统来确保最新的情况。 "
200207
201208#: ../../library/py_compile.rst:130
202209msgid ""
@@ -207,17 +214,19 @@ msgid ""
207214"If ``'-'`` is the only parameter in args, the list of files is taken from "
208215"standard input."
209216msgstr ""
217+ "编译多个源文件。 在 *args* 中(或者当 *args* 为 ``None`` 时则是在命令行中)指定的文件会被编译并将结果字节码以正常方式来缓存。"
218+ " 此函数不会搜索目录结构来定位源文件;它只编译显式指定的文件。 如果 ``'-'`` 是 args 中唯一的值,则会从标准输入获取文件列表。"
210219
211220#: ../../library/py_compile.rst:137
212221msgid "Added support for ``'-'``."
213- msgstr ""
222+ msgstr "添加了对 ``'-'`` 的支持。 "
214223
215224#: ../../library/py_compile.rst:140
216225msgid ""
217226"When this module is run as a script, the :func:`main` is used to compile all"
218227" the files named on the command line. The exit status is nonzero if one of "
219228"the files could not be compiled."
220- msgstr ""
229+ msgstr "当此模块作为脚本运行时,会使用 :func:`main` 来编译命令行中指定的所有文件。 如果某个文件无法被编译则退出状态将为非零值。 "
221230
222231#: ../../library/py_compile.rst:147
223232msgid "Module :mod:`compileall`"
0 commit comments