-
-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathpicklebuffer.po
More file actions
116 lines (100 loc) · 4.33 KB
/
picklebuffer.po
File metadata and controls
116 lines (100 loc) · 4.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# python-doc bot, 2025
# Freesand Leo <yuqinju@163.com>, 2025
# 99 <wh2099@pm.me>, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-05-05 15:48+0000\n"
"PO-Revision-Date: 2025-11-17 14:16+0000\n"
"Last-Translator: 99 <wh2099@pm.me>, 2026\n"
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: ../../c-api/picklebuffer.rst:9
msgid "Pickle buffer objects"
msgstr "PickleBuffer 对象"
#: ../../c-api/picklebuffer.rst:13
msgid ""
"A :class:`pickle.PickleBuffer` object wraps a :ref:`buffer-providing object "
"<bufferobjects>` for out-of-band data transfer with the :mod:`pickle` "
"module."
msgstr ""
":class:`pickle.PickleBuffer` 对象包装了一个 :ref:`提供缓冲区的对象 <bufferobjects>` 用于配合 "
":mod:`pickle` 模块进行带外数据传输。"
#: ../../c-api/picklebuffer.rst:19
msgid ""
"This instance of :c:type:`PyTypeObject` represents the Python pickle buffer "
"type. This is the same object as :class:`pickle.PickleBuffer` in the Python "
"layer."
msgstr ""
"这个 :c:type:`PyTypeObject` 的实例表示 Python pickle 缓冲区类型。这与 Python 层级的 "
":class:`pickle.PickleBuffer` 是同一对象。"
#: ../../c-api/picklebuffer.rst:25
msgid ""
"Return true if *op* is a pickle buffer instance. This function always "
"succeeds."
msgstr "如果 *op* 是一个 pickle 缓冲区实例则返回真值。此函数总是会成功执行。"
#: ../../c-api/picklebuffer.rst:31
msgid "Create a pickle buffer from the object *obj*."
msgstr "基于 *obj* 创建一个 pickle 缓冲区。"
#: ../../c-api/picklebuffer.rst:33
msgid ""
"This function will fail if *obj* doesn't support the :ref:`buffer protocol "
"<bufferobjects>`."
msgstr "如果 *obj* 不支持 :ref:`缓冲区协议 <bufferobjects>` 则此函数执行将失败。"
#: ../../c-api/picklebuffer.rst:35
msgid ""
"On success, return a new pickle buffer instance. On failure, set an "
"exception and return ``NULL``."
msgstr "成功时,返回一个新的 pickle 缓冲区实例。失败时,设置一个异常并返回 ``NULL``。"
#: ../../c-api/picklebuffer.rst:38
msgid ""
"Analogous to calling :class:`pickle.PickleBuffer` with *obj* in Python."
msgstr "等同于在 Python 中调用 :class:`pickle.PickleBuffer` 并传入 *obj*。"
#: ../../c-api/picklebuffer.rst:43
msgid ""
"Get a pointer to the underlying :c:type:`Py_buffer` that the pickle buffer "
"wraps."
msgstr "获取一个指向 pickle 缓冲区所包装的底层 :c:type:`Py_buffer` 的指针。"
#: ../../c-api/picklebuffer.rst:45
msgid ""
"The returned pointer is valid as long as *picklebuf* is alive and has not "
"been released. The caller must not modify or free the returned "
":c:type:`Py_buffer`. If the pickle buffer has been released, raise "
":exc:`ValueError`."
msgstr ""
"只要 *picklebuf* 保持存活而未被释放则返回的指针就将有效。调用方不可修改或释放返回的 :c:type:`Py_buffer`。如果 "
"pickle 缓冲区被释放,则会引发 :exc:`ValueError`。"
#: ../../c-api/picklebuffer.rst:49
msgid ""
"On success, return a pointer to the buffer view. On failure, set an "
"exception and return ``NULL``."
msgstr "成功时,返回一个指向缓冲区视图的指针。失败时,设置一个异常并返回 ``NULL``。"
#: ../../c-api/picklebuffer.rst:55
msgid "Release the underlying buffer held by the pickle buffer."
msgstr "释放由 PickleBuffer 占用的底层缓冲区。"
#: ../../c-api/picklebuffer.rst:57
msgid ""
"Return ``0`` on success. On failure, set an exception and return ``-1``."
msgstr "成功时返回 ``0``。失败时,设置一个异常并返回 ``-1``。"
#: ../../c-api/picklebuffer.rst:59
msgid "Analogous to calling :meth:`pickle.PickleBuffer.release` in Python."
msgstr "等同于在 Python 中调用 :meth:`pickle.PickleBuffer.release`。"
#: ../../c-api/picklebuffer.rst:5
msgid "object"
msgstr "object -- 对象"
#: ../../c-api/picklebuffer.rst:5
msgid "PickleBuffer"
msgstr "PickleBuffer"