@@ -3524,6 +3524,10 @@ msgid ""
35243524"exception if the functionality is used when it's not locally available. "
35253525"(Specifying ``None`` for *dir_fd* is always supported on all platforms.)"
35263526msgstr ""
3527+ "一个 :class:`set` 对象,指示 :mod:`os` 模块中的哪些函数接受一个打开的文件描述符作为 *dir_fd* "
3528+ "参数。不同平台提供的功能不同,且 Python 用于实现 *dir_fd* 参数的底层函数并非在 Python "
3529+ "支持的所有平台上都可用。考虑到一致性,支持 *dir_fd* "
3530+ "的函数始终允许指定描述符,但如果在底层不支持时调用了该函数,则会抛出异常。(在所有平台上始终支持将 *dir_fd* 指定为 ``None``。)"
35273531
35283532#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2724
35293533msgid ""
@@ -3532,12 +3536,15 @@ msgid ""
35323536"an example, this expression evaluates to ``True`` if :func:`os.stat` accepts"
35333537" open file descriptors for *dir_fd* on the local platform::"
35343538msgstr ""
3539+ "要检查某个函数是否接受打开的文件描述符作为 *dir_fd* 参数,请在 ``supports_dir_fd`` 前使用 ``in`` "
3540+ "运算符。例如,如果 :func:`os.stat` 在当前平台上接受打开的文件描述符作为 *dir_fd* 参数,则此表达式的计算结果为 "
3541+ "``True``::"
35353542
35363543#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2731
35373544msgid ""
35383545"Currently *dir_fd* parameters only work on Unix platforms; none of them work"
35393546" on Windows."
3540- msgstr ""
3547+ msgstr "目前 *dir_fd* 参数仅在 Unix 平台上有效,在 Windows 上均无效。 "
35413548
35423549#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2739
35433550msgid ""
@@ -3547,18 +3554,22 @@ msgid ""
35473554"platforms.) If the local platform supports it, the collection will contain "
35483555":func:`os.access`; otherwise it will be empty."
35493556msgstr ""
3557+ "一个 :class:`set` 对象,指示 :func:`os.access` 是否允许在当前平台上将其 *effective_ids* 参数指定为 "
3558+ "``True``。(所有平台都支持将 *effective_ids* 指定为 ``False``。)如果当前平台支持,则集合将包含 "
3559+ ":func:`os.access`,否则集合为空。"
35503560
35513561#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2745
35523562msgid ""
35533563"This expression evaluates to ``True`` if :func:`os.access` supports "
35543564"``effective_ids=True`` on the local platform::"
35553565msgstr ""
3566+ "如果当前平台上的 :func:`os.access` 支持 ``effective_ids=True``,则此表达式的计算结果为 ``True``::"
35563567
35573568#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2750
35583569msgid ""
35593570"Currently *effective_ids* is only supported on Unix platforms; it does not "
35603571"work on Windows."
3561- msgstr ""
3572+ msgstr "目前仅 Unix 平台支持 *effective_ids*,Windows 不支持。 "
35623573
35633574#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2758
35643575msgid ""
@@ -3568,6 +3579,8 @@ msgid ""
35683579"underlying functionality Python uses to accept open file descriptors as "
35693580"*path* arguments is not available on all platforms Python supports."
35703581msgstr ""
3582+ "一个 :class:`set` 对象,指示在当前平台上 :mod:`os` 模块中的哪些函数接受一个打开的文件描述符作为 *path* "
3583+ "参数。不同平台提供的功能不同,且 Python 所使用到的底层函数(用于实现接受描述符作为 *path*)并非在 Python 支持的所有平台上都可用。"
35713584
35723585#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2765
35733586msgid ""
@@ -3577,6 +3590,8 @@ msgid ""
35773590":func:`os.chdir` accepts open file descriptors for *path* on your local "
35783591"platform::"
35793592msgstr ""
3593+ "要判断某个函数是否接受打开的文件描述符作为 *path* 参数,请在 ``supports_fd`` 前使用 ``in`` 运算符。例如,如果 "
3594+ ":func:`os.chdir` 在当前平台上接受打开的文件描述符作为 *path* 参数,则此表达式的计算结果为 ``True``::"
35803595
35813596#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2778
35823597msgid ""
@@ -3590,6 +3605,11 @@ msgid ""
35903605"available. (Specifying ``True`` for *follow_symlinks* is always supported "
35913606"on all platforms.)"
35923607msgstr ""
3608+ "一个 :class:`set` 对象,指示在当前平台上 :mod:`os` 模块中的哪些函数的 *follow_symlinks* 参数可指定为 "
3609+ "``False``。不同平台提供的功能不同,且 Python 用于实现 *follow_symlinks* 的底层函数并非在 Python "
3610+ "支持的所有平台上都可用。考虑到一致性,支持 *follow_symlinks* 的函数始终允许将其指定为 "
3611+ "``False``,但如果在底层不支持时调用了该函数,则会抛出异常。(在所有平台上始终支持将 *follow_symlinks* 指定为 "
3612+ "``True``。)"
35933613
35943614#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2788
35953615msgid ""
0 commit comments