@@ -13,7 +13,7 @@ msgid ""
1313msgstr ""
1414"Project-Id-Version : Python 3.12\n "
1515"Report-Msgid-Bugs-To : \n "
16- "POT-Creation-Date : 2024-08-02 14 :51+0000\n "
16+ "POT-Creation-Date : 2024-08-03 23 :51+0000\n "
1717"PO-Revision-Date : 2024-05-11 00:33+0000\n "
1818"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
1919"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -1735,13 +1735,7 @@ msgstr ""
17351735"一个将 Python C API 函数作为属性公开出来的 :class:`PyDLL` 实例。 请注意所有这些函数都应返回 C "
17361736":c:expr:`int`,当然也并非总是如此,因此您必须分配正确的 :attr:`!restype` 属性才能使用这些函数。"
17371737
1738- #: ../../library/ctypes.rst:1580
1739- msgid ""
1740- "Loading a library through any of these objects raises an auditing event "
1741- "ctypes.dlopen with string argument name, the name used to load the library."
1742- msgstr ""
1743-
1744- #: ../../library/ctypes.rst:1582
1738+ #: ../../library/ctypes.rst:1580 ../../library/ctypes.rst:1582
17451739msgid ""
17461740"Loading a library through any of these objects raises an :ref:`auditing "
17471741"event <auditing>` ``ctypes.dlopen`` with string argument ``name``, the name "
@@ -1750,14 +1744,7 @@ msgstr ""
17501744"通过这些对象中的任何一个加载库都将引发一个 :ref:`审计事件 <auditing>` ``ctypes.dlopen`` 并附带字符串参数 "
17511745"``name``,即用于加载库的名称。"
17521746
1753- #: ../../library/ctypes.rst:1586
1754- msgid ""
1755- "Accessing a function on a loaded library raises an auditing event "
1756- "ctypes.dlsym with arguments library (the library object) and name (the "
1757- "symbol's name as a string or integer)."
1758- msgstr ""
1759-
1760- #: ../../library/ctypes.rst:1588
1747+ #: ../../library/ctypes.rst:1586 ../../library/ctypes.rst:1588
17611748msgid ""
17621749"Accessing a function on a loaded library raises an auditing event "
17631750"``ctypes.dlsym`` with arguments ``library`` (the library object) and "
@@ -1766,14 +1753,7 @@ msgstr ""
17661753"在加载的库上访问一个函数将引发一个审计事件 ``ctypes.dlsym`` 并附带参数 ``library`` (库对象) 和 ``name`` "
17671754"(以字符串或整数表示的符号名称)."
17681755
1769- #: ../../library/ctypes.rst:1592
1770- msgid ""
1771- "In cases when only the library handle is available rather than the object, "
1772- "accessing a function raises an auditing event ctypes.dlsym/handle with "
1773- "arguments handle (the raw library handle) and name."
1774- msgstr ""
1775-
1776- #: ../../library/ctypes.rst:1594
1756+ #: ../../library/ctypes.rst:1592 ../../library/ctypes.rst:1594
17771757msgid ""
17781758"In cases when only the library handle is available rather than the object, "
17791759"accessing a function raises an auditing event ``ctypes.dlsym/handle`` with "
@@ -1905,16 +1885,7 @@ msgid ""
19051885"the passed arguments."
19061886msgstr "此异常会在外部函数无法对某个传入参数执行转换时被引发。"
19071887
1908- #: ../../library/ctypes.rst:1683
1909- msgid ""
1910- "On Windows, when a foreign function call raises a system exception (for "
1911- "example, due to an access violation), it will be captured and replaced with "
1912- "a suitable Python exception. Further, an auditing event ctypes.set_exception"
1913- " with argument code will be raised, allowing an audit hook to replace the "
1914- "exception with its own."
1915- msgstr ""
1916-
1917- #: ../../library/ctypes.rst:1685
1888+ #: ../../library/ctypes.rst:1683 ../../library/ctypes.rst:1685
19181889msgid ""
19191890"On Windows, when a foreign function call raises a system exception (for "
19201891"example, due to an access violation), it will be captured and replaced with "
@@ -1925,13 +1896,7 @@ msgstr ""
19251896"在 Windows 上,当外部函数调用引发一个系统异常时(例如由于访问冲突),它将被捕获并被替换为适当的 Python 异常。 "
19261897"此外,还将引发一个审计事件 ``ctypes.set_exception`` 并附带参数 ``code``,以允许审计钩子将原异常替换为它自己的异常。"
19271898
1928- #: ../../library/ctypes.rst:1691
1929- msgid ""
1930- "Some ways to invoke foreign function calls may raise an auditing event "
1931- "ctypes.call_function with arguments function pointer and arguments."
1932- msgstr ""
1933-
1934- #: ../../library/ctypes.rst:1693
1899+ #: ../../library/ctypes.rst:1691 ../../library/ctypes.rst:1693
19351900msgid ""
19361901"Some ways to invoke foreign function calls may raise an auditing event "
19371902"``ctypes.call_function`` with arguments ``function pointer`` and "
@@ -2162,8 +2127,10 @@ msgid ""
21622127msgstr "以整数形式返回内存缓冲区地址。 *obj* 必须为一个 ctypes 类型的实例。"
21632128
21642129#: ../../library/ctypes.rst:1886
2165- msgid "Raises an auditing event ctypes.addressof with argument obj."
2166- msgstr ""
2130+ msgid ""
2131+ "Raises an :ref:`auditing event <auditing>` ``ctypes.addressof`` with "
2132+ "argument ``obj``."
2133+ msgstr "引发一个 :ref:`审计事件 <auditing>` ``ctypes.addressof``,附带参数 ``obj``。"
21672134
21682135#: ../../library/ctypes.rst:1891
21692136msgid ""
@@ -2225,9 +2192,11 @@ msgstr ""
22252192
22262193#: ../../library/ctypes.rst:1930
22272194msgid ""
2228- "Raises an auditing event ctypes.create_string_buffer with arguments init, "
2229- "size."
2195+ "Raises an :ref:` auditing event <auditing>` `` ctypes.create_string_buffer`` "
2196+ "with arguments ``init``, `` size`` ."
22302197msgstr ""
2198+ "引发一个 :ref:`审计事件 <auditing>` ``ctypes.create_string_buffer``,附带参数 ``init``, "
2199+ "``size``。"
22312200
22322201#: ../../library/ctypes.rst:1935
22332202msgid ""
@@ -2254,9 +2223,11 @@ msgstr ""
22542223
22552224#: ../../library/ctypes.rst:1947
22562225msgid ""
2257- "Raises an auditing event ctypes.create_unicode_buffer with arguments init, "
2258- "size."
2226+ "Raises an :ref:` auditing event <auditing>` `` ctypes.create_unicode_buffer`` "
2227+ "with arguments ``init``, `` size`` ."
22592228msgstr ""
2229+ "引发一个 :ref:`审计事件 <auditing>` ``ctypes.create_unicode_buffer``,附带参数 ``init``, "
2230+ "``size``。"
22602231
22612232#: ../../library/ctypes.rst:1952
22622233msgid ""
@@ -2326,8 +2297,10 @@ msgid ""
23262297msgstr "返回调用线程中系统 :data:`errno` 变量的 ctypes 私有副本的当前值。"
23272298
23282299#: ../../library/ctypes.rst:2005
2329- msgid "Raises an auditing event ctypes.get_errno with no arguments."
2330- msgstr ""
2300+ msgid ""
2301+ "Raises an :ref:`auditing event <auditing>` ``ctypes.get_errno`` with no "
2302+ "arguments."
2303+ msgstr "引发一个 :ref:`审计事件 <auditing>` ``ctypes.get_errno``,不附带任何参数。"
23312304
23322305#: ../../library/ctypes.rst:2009
23332306msgid ""
@@ -2336,8 +2309,10 @@ msgid ""
23362309msgstr "仅限 Windows:返回调用线程中系统 :data:`!LastError` 变量的 ctypes 私有副本的当前值。"
23372310
23382311#: ../../library/ctypes.rst:2012
2339- msgid "Raises an auditing event ctypes.get_last_error with no arguments."
2340- msgstr ""
2312+ msgid ""
2313+ "Raises an :ref:`auditing event <auditing>` ``ctypes.get_last_error`` with no"
2314+ " arguments."
2315+ msgstr "引发一个 :ref:`审计事件 <auditing>` ``ctypes.get_last_error``,不附带任何参数。"
23412316
23422317#: ../../library/ctypes.rst:2016
23432318msgid ""
@@ -2394,8 +2369,10 @@ msgid ""
23942369msgstr "设置调用线程中系统 :data:`errno` 变量的 ctypes 私有副本的当前值为 *value* 并返回原来的值。"
23952370
23962371#: ../../library/ctypes.rst:2057
2397- msgid "Raises an auditing event ctypes.set_errno with argument errno."
2398- msgstr ""
2372+ msgid ""
2373+ "Raises an :ref:`auditing event <auditing>` ``ctypes.set_errno`` with "
2374+ "argument ``errno``."
2375+ msgstr "引发一个 :ref:`审计事件 <auditing>` ``ctypes.set_errno`` 附带参数 ``errno``。"
23992376
24002377#: ../../library/ctypes.rst:2062
24012378msgid ""
@@ -2407,8 +2384,10 @@ msgstr ""
24072384"并返回原来的值。"
24082385
24092386#: ../../library/ctypes.rst:2066
2410- msgid "Raises an auditing event ctypes.set_last_error with argument error."
2411- msgstr ""
2387+ msgid ""
2388+ "Raises an :ref:`auditing event <auditing>` ``ctypes.set_last_error`` with "
2389+ "argument ``error``."
2390+ msgstr "引发一个 :ref:`审计事件 <auditing>` ``ctypes.set_last_error``,附带参数 ``error``。"
24122391
24132392#: ../../library/ctypes.rst:2071
24142393msgid ""
@@ -2423,8 +2402,11 @@ msgid ""
24232402msgstr "返回位于 *void \\ *ptr* 的字节串。 如果指定了 *size*,它将被用作字节串的大小,否则将假定字节串以零值结尾。"
24242403
24252404#: ../../library/ctypes.rst:2081
2426- msgid "Raises an auditing event ctypes.string_at with arguments ptr, size."
2405+ msgid ""
2406+ "Raises an :ref:`auditing event <auditing>` ``ctypes.string_at`` with "
2407+ "arguments ``ptr``, ``size``."
24272408msgstr ""
2409+ "引发一个 :ref:`审计事件 <auditing>` ``ctypes.string_at``,附带参数 ``ptr``, ``size``。"
24282410
24292411#: ../../library/ctypes.rst:2086
24302412msgid ""
@@ -2452,8 +2434,11 @@ msgid ""
24522434msgstr "返回位于 *void \\ *ptr* 的宽字符串。 如果指定了 *size*,它将被用作字符串的字符数量,否则将假定字符串以零值结尾。"
24532435
24542436#: ../../library/ctypes.rst:2104
2455- msgid "Raises an auditing event ctypes.wstring_at with arguments ptr, size."
2437+ msgid ""
2438+ "Raises an :ref:`auditing event <auditing>` ``ctypes.wstring_at`` with "
2439+ "arguments ``ptr``, ``size``."
24562440msgstr ""
2441+ "引发一个 :ref:`审计事件 <auditing>` ``ctypes.wstring_at``,附带参数 ``ptr``, ``size``。"
24572442
24582443#: ../../library/ctypes.rst:2110
24592444msgid "Data types"
@@ -2491,9 +2476,11 @@ msgstr ""
24912476
24922477#: ../../library/ctypes.rst:2133 ../../library/ctypes.rst:2143
24932478msgid ""
2494- "Raises an auditing event ctypes.cdata/buffer with arguments pointer, size, "
2495- "offset."
2479+ "Raises an :ref:` auditing event <auditing>` `` ctypes.cdata/buffer`` with "
2480+ "arguments ``pointer``, ``size``, `` offset`` ."
24962481msgstr ""
2482+ "引发一个 :ref:`审计事件 <auditing>` ``ctypes.cdata/buffer`` 附带参数 ``pointer``, "
2483+ "``size``, ``offset``。"
24972484
24982485#: ../../library/ctypes.rst:2137
24992486msgid ""
@@ -2511,13 +2498,7 @@ msgid ""
25112498"*address* which must be an integer."
25122499msgstr "此方法会使用 *address* 所指定的内存返回一个 ctypes 类型的实例,该参数必须为一个整数。"
25132500
2514- #: ../../library/ctypes.rst:2150
2515- msgid ""
2516- "This method, and others that indirectly call this method, raises an auditing"
2517- " event ctypes.cdata with argument address."
2518- msgstr ""
2519-
2520- #: ../../library/ctypes.rst:2152
2501+ #: ../../library/ctypes.rst:2150 ../../library/ctypes.rst:2152
25212502msgid ""
25222503"This method, and others that indirectly call this method, raises an "
25232504":ref:`auditing event <auditing>` ``ctypes.cdata`` with argument ``address``."
0 commit comments