Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d13a9bf

Browse files
[po] auto sync
1 parent 2adae82 commit d13a9bf

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

c-api/import.po

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,30 +194,36 @@ msgid ""
194194
":c:member:`co_filename`. If applicable, :attr:`__cached__` will also be "
195195
"set."
196196
msgstr ""
197+
"模块的 :attr:`__file__` 属性将被设为代码对象的 :c:member:`co_filename`。 "
198+
"如果适用,:attr:`__cached__` 也将被设置。"
197199

198200
#: ../../c-api/import.rst:144
199201
msgid ""
200202
"This function will reload the module if it was already imported. See "
201203
":c:func:`PyImport_ReloadModule` for the intended way to reload a module."
202-
msgstr ""
204+
msgstr "如果模块已被导入则此函数将重载它。 请参阅 :c:func:`PyImport_ReloadModule` 了解重载模块的预定方式。"
203205

204206
#: ../../c-api/import.rst:147
205207
msgid ""
206208
"If *name* points to a dotted name of the form ``package.module``, any "
207209
"package structures not already created will still not be created."
208-
msgstr ""
210+
msgstr "如果 *name* 指向一个形式为 ``package.module`` 的带点号的名称,则任何尚未创建的包结构仍然不会被创建。"
209211

210212
#: ../../c-api/import.rst:150
211213
msgid ""
212214
"See also :c:func:`PyImport_ExecCodeModuleEx` and "
213215
":c:func:`PyImport_ExecCodeModuleWithPathnames`."
214216
msgstr ""
217+
"另请参阅 :c:func:`PyImport_ExecCodeModuleEx` 和 "
218+
":c:func:`PyImport_ExecCodeModuleWithPathnames`。"
215219

216220
#: ../../c-api/import.rst:156
217221
msgid ""
218222
"Like :c:func:`PyImport_ExecCodeModule`, but the :attr:`__file__` attribute "
219223
"of the module object is set to *pathname* if it is non-``NULL``."
220224
msgstr ""
225+
"类似于 :c:func:`PyImport_ExecCodeModule`,但如果 *pathname* 不为 ``NULL`` 则会被设为模块对象的 "
226+
":attr:`__file__` 属性的值。"
221227

222228
#: ../../c-api/import.rst:159
223229
msgid "See also :c:func:`PyImport_ExecCodeModuleWithPathnames`."
@@ -229,6 +235,8 @@ msgid ""
229235
"attribute of the module object is set to *cpathname* if it is non-``NULL``."
230236
" Of the three functions, this is the preferred one to use."
231237
msgstr ""
238+
"类似于 :c:func:`PyImport_ExecCodeModuleEx`,但如果 *cpathname* 不为 ``NULL`` "
239+
"则会被设为模块对象的 :attr:`__cached__` 值。 在三个函数中,这是推荐使用的一个。"
232240

233241
#: ../../c-api/import.rst:173
234242
msgid ""
@@ -237,19 +245,24 @@ msgid ""
237245
"what the value for *pathname* should be from *cpathname* if the former is "
238246
"set to ``NULL``."
239247
msgstr ""
248+
"类似于 :c:func:`PyImport_ExecCodeModuleObject`,但 *name*, *pathname* 和 "
249+
"*cpathname* 为 UTF-8 编码的字符串。如果 *pathname* 也被设为 ``NULL`` 则还会尝试根据 *cpathname* "
250+
"推断出前者的值。"
240251

241252
#: ../../c-api/import.rst:179
242253
msgid ""
243254
"Uses :func:`imp.source_from_cache()` in calculating the source path if only "
244255
"the bytecode path is provided."
245-
msgstr ""
256+
msgstr "如果只提供了字节码路径则会使用 :func:`imp.source_from_cache()` 来计算源路径。"
246257

247258
#: ../../c-api/import.rst:186
248259
msgid ""
249260
"Return the magic number for Python bytecode files (a.k.a. :file:`.pyc` "
250261
"file). The magic number should be present in the first four bytes of the "
251262
"bytecode file, in little-endian byte order. Returns ``-1`` on error."
252263
msgstr ""
264+
"返回 Python 字节码文件(即 :file:`.pyc` 文件)的魔数。 此魔数应当存在于字节码文件的开头四个字节中,按照小端字节序。 出错时返回 "
265+
"``-1``。"
253266

254267
#: ../../c-api/import.rst:190
255268
msgid "Return value of ``-1`` upon failure."
@@ -261,6 +274,8 @@ msgid ""
261274
"names. Keep in mind that the value at ``sys.implementation.cache_tag`` is "
262275
"authoritative and should be used instead of this function."
263276
msgstr ""
277+
"针对 :pep:`3147` 格式的 Python 字节码文件名返回魔术标签字符串。 请记住在 "
278+
"``sys.implementation.cache_tag`` 上的值是应当被用来代替此函数的更权威的值。"
264279

265280
#: ../../c-api/import.rst:204
266281
msgid ""

0 commit comments

Comments
 (0)