8000 [po] auto sync · python/python-docs-zh-cn@55a21db · GitHub
[go: up one dir, main page]

Skip to content

Commit 55a21db

Browse files
[po] auto sync
1 parent 8e7042a commit 55a21db

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.18%", "updated_at": "2025-03-26T08:56:29Z"}
1+
{"translation": "81.18%", "updated_at": "2025-03-28T04:55:56Z"}

reference/datamodel.po

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,6 +1382,8 @@ msgid ""
13821382
" have a :attr:`!__path__` attribute. See :ref:`package-path-rules` for more "
13831383
"details."
13841384
msgstr ""
1385+
"一个(可能为空的)枚举用于查找包的子模块的位置的由字符串组成的 :term:`sequence`。 非包模块应当没有 :attr:`!__path__`"
1386+
" 属性。 详情参见 :ref:`package-path-rules`。"
13851387

13861388
#: ../../reference/datamodel.rst:1029
13871389
msgid ""
@@ -1390,13 +1392,18 @@ msgid ""
13901392
"<importlib.machinery.ModuleSpec.submodule_search_locations>` instead of "
13911393
":attr:`!module.__path__`."
13921394
msgstr ""
1395+
"**强烈** 建议你使用 :attr:`module.__spec__.submodule_search_locations "
1396+
"<importlib.machinery.ModuleSpec.submodule_search_locations>` 来代替 "
1397+
":attr:`!module.__path__`。"
13931398

13941399
#: ../../reference/datamodel.rst:1036
13951400
msgid ""
13961401
":attr:`!__file__` and :attr:`!__cached__` are both optional attributes that "
13971402
"may or may not be set. Both attributes should be a :class:`str` when they "
13981403
"are available."
13991404
msgstr ""
1405+
":attr:`!__file__` 和 :attr:`!__cached__` 都是可设也可不设的可选属性。 两个属性在可用时都应当为 "
1406+
":class:`str`。"
14001407

14011408
#: ../../reference/datamodel.rst:1040
14021409
msgid ""
@@ -1408,6 +1415,9 @@ msgid ""
14081415
"<importsystem>` may opt to leave it unset if it has no semantic meaning (for"
14091416
" example, a module loaded from a database)."
14101417
msgstr ""
1418+
":attr:`!__file__` 指明要载入的模块所在文件的路径名(如果是从文件载入),或者对于从共享库动态载入的扩展模块来说则是共享库文件的路径名。"
1419+
" 它对于特定类型的模块来说可能是缺失的,例如静态链接到解释器中的 C 模块,并且 :ref:`导入系统 <importsystem>` "
1420+
"也可能会在它没有语法意义时选择不设置它(例如,当一个模块是从数据库导入时)。"
14111421

14121422
#: ../../reference/datamodel.rst:1048
14131423
msgid ""
@@ -1417,6 +1427,9 @@ msgid ""
14171427
"attribute; the path can simply point to where the compiled file *would* "
14181428
"exist (see :pep:`3147`)."
14191429
msgstr ""
1430+
"如果设置了 :attr:`!__file__` 则 :attr:`!__cached__` "
1431+
"属性也可能会被设置,它是指向任何代码的已编译版本的路径(例如,一个字节码文件)。 设置此属性并不需要存在相应的路径;该路径可以简单地指向已编译文件 "
1432+
"*将要* 存在的位置 (参见 :pep:`3147`)。"
14201433

14211434
#: ../../reference/datamodel.rst:1054
14221435
msgid ""

0 commit comments

Comments
 (0)
0