Skip to content

Commit 59e95f9

Browse files
sync with cpython 424df31f
1 parent a1e1254 commit 59e95f9

File tree

7 files changed

+552
-493
lines changed

7 files changed

+552
-493
lines changed

c-api/memoryview.po

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Python 3.12\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2023-05-09 00:15+0000\n"
10+
"POT-Creation-Date: 2024-01-30 00:03+0000\n"
1111
"PO-Revision-Date: 2015-12-09 17:51+0000\n"
1212
"Last-Translator: Liang-Bo Wang <[email protected]>\n"
1313
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -37,20 +37,28 @@ msgid ""
3737
"the discretion of the exporter."
3838
msgstr ""
3939

40-
#: ../../c-api/memoryview.rst:25
40+
#: ../../c-api/memoryview.rst:26
41+
msgid "Flag to request a readonly buffer."
42+
msgstr ""
43+
44+
#: ../../c-api/memoryview.rst:31
45+
msgid "Flag to request a writable buffer."
46+
msgstr ""
47+
48+
#: ../../c-api/memoryview.rst:36
4149
msgid ""
4250
"Create a memoryview object using *mem* as the underlying buffer. *flags* can "
4351
"be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`."
4452
msgstr ""
4553

46-
#: ../../c-api/memoryview.rst:32
54+
#: ../../c-api/memoryview.rst:43
4755
msgid ""
4856
"Create a memoryview object wrapping the given buffer structure *view*. For "
4957
"simple byte buffers, :c:func:`PyMemoryView_FromMemory` is the preferred "
5058
"function."
5159
msgstr ""
5260

53-
#: ../../c-api/memoryview.rst:38
61+
#: ../../c-api/memoryview.rst:49
5462
msgid ""
5563
"Create a memoryview object to a :term:`contiguous` chunk of memory (in "
5664
"either 'C' or 'F'ortran *order*) from an object that defines the buffer "
@@ -59,21 +67,26 @@ msgid ""
5967
"new bytes object."
6068
msgstr ""
6169

62-
#: ../../c-api/memoryview.rst:47
70+
#: ../../c-api/memoryview.rst:55
71+
msgid ""
72+
"*buffertype* can be one of :c:macro:`PyBUF_READ` or :c:macro:`PyBUF_WRITE`."
73+
msgstr ""
74+
75+
#: ../../c-api/memoryview.rst:60
6376
msgid ""
6477
"Return true if the object *obj* is a memoryview object. It is not currently "
6578
"allowed to create subclasses of :class:`memoryview`. This function always "
6679
"succeeds."
6780
msgstr ""
6881

69-
#: ../../c-api/memoryview.rst:54
82+
#: ../../c-api/memoryview.rst:67
7083
msgid ""
7184
"Return a pointer to the memoryview's private copy of the exporter's buffer. "
7285
"*mview* **must** be a memoryview instance; this macro doesn't check its "
7386
"type, you must do it yourself or you will risk crashes."
7487
msgstr ""
7588

76-
#: ../../c-api/memoryview.rst:60
89+
#: ../../c-api/memoryview.rst:73
7790
msgid ""
7891
"Return either a pointer to the exporting object that the memoryview is based "
7992
"on or ``NULL`` if the memoryview has been created by one of the functions :c:"

0 commit comments

Comments
 (0)