@@ -13,7 +13,7 @@ msgid ""
13
13
msgstr ""
14
14
"Project-Id-Version : Python 3.12\n "
15
15
"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 "
17
17
"PO-Revision-Date : 2024-05-11 00:33+0000\n "
18
18
"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n "
19
19
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -1735,13 +1735,7 @@ msgstr ""
1735
1735
"一个将 Python C API 函数作为属性公开出来的 :class:`PyDLL` 实例。 请注意所有这些函数都应返回 C "
1736
1736
":c:expr:`int`,当然也并非总是如此,因此您必须分配正确的 :attr:`!restype` 属性才能使用这些函数。"
1737
1737
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
1745
1739
msgid ""
1746
1740
"Loading a library through any of these objects raises an :ref:`auditing "
1747
1741
"event <auditing>` ``ctypes.dlopen`` with string argument ``name``, the name "
@@ -1750,14 +1744,7 @@ msgstr ""
1750
1744
"通过这些对象中的任何一个加载库都将引发一个 :ref:`审计事件 <auditing>` ``ctypes.dlopen`` 并附带字符串参数 "
1751
1745
"``name``,即用于加载库的名称。"
1752
1746
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
1761
1748
msgid ""
1762
1749
"Accessing a function on a loaded library raises an auditing event "
1763
1750
"``ctypes.dlsym`` with arguments ``library`` (the library object) and "
@@ -1766,14 +1753,7 @@ msgstr ""
1766
1753
"在加载的库上访问一个函数将引发一个审计事件 ``ctypes.dlsym`` 并附带参数 ``library`` (库对象) 和 ``name`` "
1767
1754
"(以字符串或整数表示的符号名称)."
1768
1755
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
1777
1757
msgid ""
1778
1758
"In cases when only the library handle is available rather than the object, "
1779
1759
"accessing a function raises an auditing event ``ctypes.dlsym/handle`` with "
@@ -1905,16 +1885,7 @@ msgid ""
1905
1885
"the passed arguments."
1906
1886
msgstr "此异常会在外部函数无法对某个传入参数执行转换时被引发。"
1907
1887
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
1918
1889
msgid ""
1919
1890
"On Windows, when a foreign function call raises a system exception (for "
1920
1891
"example, due to an access violation), it will be captured and replaced with "
@@ -1925,13 +1896,7 @@ msgstr ""
1925
1896
"在 Windows 上,当外部函数调用引发一个系统异常时(例如由于访问冲突),它将被捕获并被替换为适当的 Python 异常。 "
1926
1897
"此外,还将引发一个审计事件 ``ctypes.set_exception`` 并附带参数 ``code``,以允许审计钩子将原异常替换为它自己的异常。"
1927
1898
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
1935
1900
msgid ""
1936
1901
"Some ways to invoke foreign function calls may raise an auditing event "
1937
1902
"``ctypes.call_function`` with arguments ``function pointer`` and "
@@ -2162,8 +2127,10 @@ msgid ""
2162
2127
msgstr "以整数形式返回内存缓冲区地址。 *obj* 必须为一个 ctypes 类型的实例。"
2163
2128
2164
2129
#: ../../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``。"
2167
2134
2168
2135
#: ../../library/ctypes.rst:1891
2169
2136
msgid ""
@@ -2225,9 +2192,11 @@ msgstr ""
2225
2192
2226
2193
#: ../../library/ctypes.rst:1930
2227
2194
msgid ""
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`` ."
2230
2197
msgstr ""
2198
+ "引发一个 :ref:`审计事件 <auditing>` ``ctypes.create_string_buffer``,附带参数 ``init``, "
2199
+ "``size``。"
2231
2200
2232
2201
#: ../../library/ctypes.rst:1935
2233
2202
msgid ""
@@ -2254,9 +2223,11 @@ msgstr ""
2254
2223
2255
2224
#: ../../library/ctypes.rst:1947
2256
2225
msgid ""
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`` ."
2259
2228
msgstr ""
2229
+ "引发一个 :ref:`审计事件 <auditing>` ``ctypes.create_unicode_buffer``,附带参数 ``init``, "
2230
+ "``size``。"
2260
2231
2261
2232
#: ../../library/ctypes.rst:1952
2262
2233
msgid ""
@@ -2326,8 +2297,10 @@ msgid ""
2326
2297
msgstr "返回调用线程中系统 :data:`errno` 变量的 ctypes 私有副本的当前值。"
2327
2298
2328
2299
#: ../../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``,不附带任何参数。"
2331
2304
2332
2305
#: ../../library/ctypes.rst:2009
2333
2306
msgid ""
@@ -2336,8 +2309,10 @@ msgid ""
2336
2309
msgstr "仅限 Windows:返回调用线程中系统 :data:`!LastError` 变量的 ctypes 私有副本的当前值。"
2337
2310
2338
2311
#: ../../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``,不附带任何参数。"
2341
2316
2342
2317
#: ../../library/ctypes.rst:2016
2343
2318
msgid ""
@@ -2394,8 +2369,10 @@ msgid ""
2394
2369
msgstr "设置调用线程中系统 :data:`errno` 变量的 ctypes 私有副本的当前值为 *value* 并返回原来的值。"
2395
2370
2396
2371
#: ../../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``。"
2399
2376
2400
2377
#: ../../library/ctypes.rst:2062
2401
2378
msgid ""
@@ -2407,8 +2384,10 @@ msgstr ""
2407
2384
"并返回原来的值。"
2408
2385
2409
2386
#: ../../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``。"
2412
2391
2413
2392
#: ../../library/ctypes.rst:2071
2414
2393
msgid ""
@@ -2423,8 +2402,11 @@ msgid ""
2423
2402
msgstr "返回位于 *void \\ *ptr* 的字节串。 如果指定了 *size*,它将被用作字节串的大小,否则将假定字节串以零值结尾。"
2424
2403
2425
2404
#: ../../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``."
2427
2408
msgstr ""
2409
+ "引发一个 :ref:`审计事件 <auditing>` ``ctypes.string_at``,附带参数 ``ptr``, ``size``。"
2428
2410
2429
2411
#: ../../library/ctypes.rst:2086
2430
2412
msgid ""
@@ -2452,8 +2434,11 @@ msgid ""
2452
2434
msgstr "返回位于 *void \\ *ptr* 的宽字符串。 如果指定了 *size*,它将被用作字符串的字符数量,否则将假定字符串以零值结尾。"
2453
2435
2454
2436
#: ../../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``."
2456
2440
msgstr ""
2441
+ "引发一个 :ref:`审计事件 <auditing>` ``ctypes.wstring_at``,附带参数 ``ptr``, ``size``。"
2457
2442
2458
2443
#: ../../library/ctypes.rst:2110
2459
2444
msgid "Data types"
@@ -2491,9 +2476,11 @@ msgstr ""
2491
2476
2492
2477
#: ../../library/ctypes.rst:2133 ../../library/ctypes.rst:2143
2493
2478
msgid ""
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`` ."
2496
2481
msgstr ""
2482
+ "引发一个 :ref:`审计事件 <auditing>` ``ctypes.cdata/buffer`` 附带参数 ``pointer``, "
2483
+ "``size``, ``offset``。"
2497
2484
2498
2485
#: ../../library/ctypes.rst:2137
2499
2486
msgid ""
@@ -2511,13 +2498,7 @@ msgid ""
2511
2498
"*address* which must be an integer."
2512
2499
msgstr "此方法会使用 *address* 所指定的内存返回一个 ctypes 类型的实例,该参数必须为一个整数。"
2513
2500
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
2521
2502
msgid ""
2522
2503
"This method, and others that indirectly call this method, raises an "
2523
2504
":ref:`auditing event <auditing>` ``ctypes.cdata`` with argument ``address``."
0 commit comments