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

Skip to content

Commit 6e80d89

Browse files
[po] auto sync
1 parent eead19b commit 6e80d89

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "80.15%", "updated_at": "2024-12-22T07:55:34Z"}
1+
{"translation": "80.16%", "updated_at": "2024-12-22T08:55:39Z"}

library/ctypes.po

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2845,6 +2845,9 @@ msgid ""
28452845
"succeeded, together with additional error code. If the return value signals"
28462846
" a failure, an :class:`OSError` is automatically raised."
28472847
msgstr ""
2848+
"这个类的实例代表已加载的共享库,这些库中的函数使用 ``stdcall`` 调用约定,并且预期返回 Windows 专属的 "
2849+
":class:`HRESULT` 代码。 :class:`HRESULT` 值包含指明函数调用是失败还是成功的信息,并带有额外的错误码。 "
2850+
"如果返回值是提示失败,则会自动引发 :class:`OSError`。"
28482851

28492852
#: ../../library/ctypes.rst:1405 ../../library/ctypes.rst:1422
28502853
#: ../../library/ctypes.rst:1566 ../../library/ctypes.rst:1574
@@ -2867,7 +2870,7 @@ msgid ""
28672870
"Instances of this class represent loaded shared libraries, functions in "
28682871
"these libraries use the ``stdcall`` calling convention, and are assumed to "
28692872
"return :c:expr:`int` by default."
2870-
msgstr ""
2873+
msgstr "这个类的实例代表已加载的共享库,这些库中的函数使用 ``stdcall`` 调用约定,并且默认预期返回 :c:expr:`int`。"
28712874

28722875
#: ../../library/ctypes.rst:1429
28732876
msgid ""
@@ -3130,12 +3133,16 @@ msgid ""
31303133
"instances as arguments, and return the default result type specified by the "
31313134
"library loader."
31323135
msgstr ""
3136+
"正如前一节的说明,外部函数可作为已加载共享库的属性来访问。 用此方式创建的函数对象默认接受任意数量的参数,接受任意 ctypes "
3137+
"数据实例作为参数,并且返回库加载器所指定的默认结果类型。"
31333138

31343139
#: ../../library/ctypes.rst:1622
31353140
msgid ""
31363141
"They are instances of a private local class :class:`!_FuncPtr` (not exposed "
31373142
"in :mod:`!ctypes`) which inherits from the private :class:`_CFuncPtr` class:"
31383143
msgstr ""
3144+
"它们是私有局部类 :class:`!_FuncPtr` 的实例(未在 :mod:`!ctypes` 中暴露),该类继承自私有的 "
3145+
":class:`_CFuncPtr` 类:"
31393146

31403147
#: ../../library/ctypes.rst:1625
31413148
msgid ""
@@ -3318,6 +3325,8 @@ msgid ""
33183325
"calling convention. The function will release the GIL during the call. "
33193326
"*use_errno* and *use_last_error* have the same meaning as above."
33203327
msgstr ""
3328+
"返回的函数原型会创建使用 ``stdcall`` 调用约定的函数。 该函数在调用过程中将会释放 GIL。 *use_errno* 和 "
3329+
"*use_last_error* 具有与上文相同的含义。"
33213330

33223331
#: ../../library/ctypes.rst:1756
33233332
msgid ""

0 commit comments

Comments
 (0)
0