Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite423e60

Browse files
sync with cpython 80aebd54
1 parent820c3d1 commite423e60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1449
-1140
lines changed

‎c-api/allocation.po

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version:Python 3.12\n"
1212
"Report-Msgid-Bugs-To:\n"
13-
"POT-Creation-Date:2022-07-06 00:17+0000\n"
13+
"POT-Creation-Date:2023-07-29 00:03+0000\n"
1414
"PO-Revision-Date:2022-10-16 15:35+0800\n"
1515
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1616
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -47,28 +47,31 @@ msgstr ""
4747
"度資訊。"
4848

4949
#:../../c-api/allocation.rst:32
50+
#,fuzzy
5051
msgid""
5152
"Allocate a new Python object using the C structure type *TYPE* and the "
52-
"Python type object *type*.Fields not defined by the Python object header "
53-
"are not initialized; the object's reference count will be one. The size of "
54-
"the memory allocation is determined from the :c:member:`~PyTypeObject."
55-
"tp_basicsize` field of the type object."
53+
"Python type object *typeobj* (``PyTypeObject*``).Fields not defined by the "
54+
"Python object headerare not initialized; the object's reference count will "
55+
"be one. The size ofthe memory allocation is determined from the :c:member:"
56+
"`~PyTypeObject.tp_basicsize` field of the type object."
5657
msgstr""
5758
"使用 C 結構型別 *TYPE* 和 Python 型別物件 *type* 分配一個新的 Python 物件。未"
5859
"在該 Python 物件標頭 (header) 中定義的欄位不會被初始化;物件的參照計數將為"
5960
"一。記憶體分配大小由 type 物件的 :c:member:`~PyTypeObject.tp_basicsize` 欄位"
6061
"來指定。"
6162

62-
#:../../c-api/allocation.rst:41
63+
#:../../c-api/allocation.rst:42
64+
#,fuzzy
6365
msgid""
6466
"Allocate a new Python object using the C structure type *TYPE* and the "
65-
"Python type object *type*. Fields not defined by the Python object header "
66-
"are not initialized. The allocated memory allows for the *TYPE* structure "
67-
"plus *size* fields of the size given by the :c:member:`~PyTypeObject."
68-
"tp_itemsize` field of *type*. This is useful for implementing objects like "
69-
"tuples, which are able to determine their size at construction time. "
70-
"Embedding the array of fields into the same allocation decreases the number "
71-
"of allocations, improving the memory management efficiency."
67+
"Python type object *typeobj* (``PyTypeObject*``). Fields not defined by the "
68+
"Python object header are not initialized. The allocated memory allows for "
69+
"the *TYPE* structure plus *size* (``Py_ssize_t``) fields of the size given "
70+
"by the :c:member:`~PyTypeObject.tp_itemsize` field of *typeobj*. This is "
71+
"useful for implementing objects like tuples, which are able to determine "
72+
"their size at construction time. Embedding the array of fields into the "
73+
"same allocation decreases the number of allocations, improving the memory "
74+
"management efficiency."
7275
msgstr""
7376
"使用 C 的結構型別 *TYPE* 和 Python 的型別物件 *type* 分配一個新的 Python 物"
7477
"件。未在該 Python 物件標頭中定義的欄位不會被初始化。記憶體空間預留了 *TYPE* "
@@ -77,10 +80,11 @@ msgstr ""
7780
"很實用的。將欄位的陣列嵌入到相同的記憶體分配中可以減少記憶體分配的次數,這提"
7881
"高了記憶體管理的效率。"
7982

80-
#:../../c-api/allocation.rst:53
83+
#:../../c-api/allocation.rst:56
84+
#,fuzzy
8185
msgid""
82-
"Releases memory allocated to an object using :c:func:`PyObject_New` or :c:"
83-
"func:`PyObject_NewVar`. This is normally called from the :c:member:"
86+
"Releases memory allocated to an object using :c:macro:`PyObject_New` or :c:"
87+
"macro:`PyObject_NewVar`. This is normally called from the :c:member:"
8488
"`~PyTypeObject.tp_dealloc` handler specified in the object's type. The "
8589
"fields of the object should not be accessed after this call as the memory is "
8690
"no longer a valid Python object."
@@ -90,7 +94,7 @@ msgstr ""
9094
"中呼叫。呼叫這個函式以後,物件的各欄位都不可以被存取,因為原本分配的記憶體已"
9195
"不再是一個有效的 Python 物件。"
9296

93-
#:../../c-api/allocation.rst:62
97+
#:../../c-api/allocation.rst:65
9498
msgid""
9599
"Object which is visible in Python as ``None``. This should only be accessed "
96100
"using the :c:macro:`Py_None` macro, which evaluates to a pointer to this "
@@ -99,10 +103,10 @@ msgstr ""
99103
"這個物件像是 Python 中的 ``None``。它只應該透過 :c:macro:`Py_None` 巨集來存"
100104
"取,該巨集的拿到指向該物件的指標。"
101105

102-
#:../../c-api/allocation.rst:69
106+
#:../../c-api/allocation.rst:72
103107
msgid":c:func:`PyModule_Create`"
104108
msgstr":c:func:`PyModule_Create`"
105109

106-
#:../../c-api/allocation.rst:70
110+
#:../../c-api/allocation.rst:73
107111
msgid"To allocate and create extension modules."
108112
msgstr"分配記憶體和建立擴充模組。"

‎c-api/apiabiversion.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.12\n"
1010
"Report-Msgid-Bugs-To:\n"
11-
"POT-Creation-Date:2022-12-18 00:16+0000\n"
11+
"POT-Creation-Date:2023-07-29 00:03+0000\n"
1212
"PO-Revision-Date:2022-01-24 22:34+0800\n"
1313
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -177,7 +177,8 @@ msgid "Use this for numeric comparisons, e.g. ``#if PY_VERSION_HEX >= ...``."
177177
msgstr"使用它進行數值比較,例如 ``#if PY_VERSION_HEX >= ...``。"
178178

179179
#:../../c-api/apiabiversion.rst:63
180-
msgid"This version is also available via the symbol :data:`Py_Version`."
180+
#,fuzzy
181+
msgid"This version is also available via the symbol :c:var:`Py_Version`."
181182
msgstr"該版本也可透過符號 :data:`Py_Version` 獲得。"
182183

183184
#:../../c-api/apiabiversion.rst:67

‎c-api/arg.po

Lines changed: 2 additions & 2 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-07-24 00:03+0000\n"
10+
"POT-Creation-Date:2023-07-29 00:03+0000\n"
1111
"PO-Revision-Date:2022-10-16 03:21+0800\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -824,7 +824,7 @@ msgstr ""
824824
#:../../c-api/arg.rst:471
825825
msgid""
826826
"This is an example of the use of this function, taken from the sources for "
827-
"the :mod:`_weakref` helper module for weak references::"
827+
"the :mod:`!_weakref` helper module for weak references::"
828828
msgstr""
829829

830830
#:../../c-api/arg.rst:487

‎c-api/buffer.po

Lines changed: 2 additions & 2 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-07-24 00:03+0000\n"
10+
"POT-Creation-Date:2023-07-29 00:03+0000\n"
1111
"PO-Revision-Date:2018-05-23 14:30+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -70,7 +70,7 @@ msgstr ""
7070
msgid""
7171
"An example consumer of the buffer interface is the :meth:`~io.BufferedIOBase."
7272
"write` method of file objects: any object that can export a series of bytes "
73-
"through the buffer interface can be written to a file. While :meth:`write` "
73+
"through the buffer interface can be written to a file. While :meth:`!write` "
7474
"only needs read-only access to the internal contents of the object passed to "
7575
"it, other methods such as :meth:`~io.BufferedIOBase.readinto` need write "
7676
"access to the contents of their argument. The buffer interface allows "

‎c-api/bytes.po

Lines changed: 61 additions & 25 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-07-17 17:39+0800\n"
10+
"POT-Creation-Date:2023-07-29 00:03+0000\n"
1111
"PO-Revision-Date:2018-05-23 14:04+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -87,8 +87,8 @@ msgid "Comment"
8787
msgstr""
8888

8989
#:../../c-api/bytes.rst:67
90-
msgid":attr:`%%`"
91-
msgstr":attr:`%%`"
90+
msgid"``%%``"
91+
msgstr""
9292

9393
#:../../c-api/bytes.rst:67
9494
msgid"*n/a*"
@@ -99,8 +99,8 @@ msgid "The literal % character."
9999
msgstr""
100100

101101
#:../../c-api/bytes.rst:69
102-
msgid":attr:`%c`"
103-
msgstr":attr:`%c`"
102+
msgid"``%c``"
103+
msgstr""
104104

105105
#:../../c-api/bytes.rst:69../../c-api/bytes.rst:72../../c-api/bytes.rst:90
106106
#:../../c-api/bytes.rst:93
@@ -112,16 +112,16 @@ msgid "A single byte, represented as a C int."
112112
msgstr""
113113

114114
#:../../c-api/bytes.rst:72
115-
msgid":attr:`%d`"
116-
msgstr":attr:`%d`"
115+
msgid"``%d``"
116+
msgstr""
117117

118118
#:../../c-api/bytes.rst:72
119119
msgid"Equivalent to ``printf(\"%d\")``. [1]_"
120120
msgstr"等價於 ``printf(\"%d\")``. [1]_"
121121

122122
#:../../c-api/bytes.rst:75
123-
msgid":attr:`%u`"
124-
msgstr":attr:`%u`"
123+
msgid"``%u``"
124+
msgstr""
125125

126126
#:../../c-api/bytes.rst:75
127127
msgid"unsigned int"
@@ -132,8 +132,8 @@ msgid "Equivalent to ``printf(\"%u\")``. [1]_"
132132
msgstr"等價於 ``printf(\"%u\")``. [1]_"
133133

134134
#:../../c-api/bytes.rst:78
135-
msgid":attr:`%ld`"
136-
msgstr":attr:`%ld`"
135+
msgid"``%ld``"
136+
msgstr""
137137

138138
#:../../c-api/bytes.rst:78
139139
msgid"long"
@@ -144,8 +144,8 @@ msgid "Equivalent to ``printf(\"%ld\")``. [1]_"
144144
msgstr"等價於 ``printf(\"%ld\")``. [1]_"
145145

146146
#:../../c-api/bytes.rst:81
147-
msgid":attr:`%lu`"
148-
msgstr":attr:`%lu`"
147+
msgid"``%lu``"
148+
msgstr""
149149

150150
#:../../c-api/bytes.rst:81
151151
msgid"unsigned long"
@@ -156,8 +156,8 @@ msgid "Equivalent to ``printf(\"%lu\")``. [1]_"
156156
msgstr"等價於 ``printf(\"%lu\")``. [1]_"
157157

158158
#:../../c-api/bytes.rst:84
159-
msgid":attr:`%zd`"
160-
msgstr":attr:`%zd`"
159+
msgid"``%zd``"
160+
msgstr""
161161

162162
#:../../c-api/bytes.rst:84
163163
msgid":c:type:`\\ Py_ssize_t`"
@@ -168,8 +168,8 @@ msgid "Equivalent to ``printf(\"%zd\")``. [1]_"
168168
msgstr"等價於 ``printf(\"%zd\")``. [1]_"
169169

170170
#:../../c-api/bytes.rst:87
171-
msgid":attr:`%zu`"
172-
msgstr":attr:`%zu`"
171+
msgid"``%zu``"
172+
msgstr""
173173

174174
#:../../c-api/bytes.rst:87
175175
msgid"size_t"
@@ -180,24 +180,24 @@ msgid "Equivalent to ``printf(\"%zu\")``. [1]_"
180180
msgstr"等價於 ``printf(\"%zu\")``. [1]_"
181181

182182
#:../../c-api/bytes.rst:90
183-
msgid":attr:`%i`"
184-
msgstr":attr:`%i`"
183+
msgid"``%i``"
184+
msgstr""
185185

186186
#:../../c-api/bytes.rst:90
187187
msgid"Equivalent to ``printf(\"%i\")``. [1]_"
188188
msgstr"等價於 ``printf(\"%i\")``. [1]_"
189189

190190
#:../../c-api/bytes.rst:93
191-
msgid":attr:`%x`"
192-
msgstr":attr:`%x`"
191+
msgid"``%x``"
192+
msgstr""
193193

194194
#:../../c-api/bytes.rst:93
195195
msgid"Equivalent to ``printf(\"%x\")``. [1]_"
196196
msgstr"等價於 ``printf(\"%x\")``. [1]_"
197197

198198
#:../../c-api/bytes.rst:96
199-
msgid":attr:`%s`"
200-
msgstr":attr:`%s`"
199+
msgid"``%s``"
200+
msgstr""
201201

202202
#:../../c-api/bytes.rst:96
203203
msgid"const char\\*"
@@ -208,8 +208,8 @@ msgid "A null-terminated C character array."
208208
msgstr""
209209

210210
#:../../c-api/bytes.rst:99
211-
msgid":attr:`%p`"
212-
msgstr":attr:`%p`"
211+
msgid"``%p``"
212+
msgstr""
213213

214214
#:../../c-api/bytes.rst:99
215215
msgid"const void\\*"
@@ -335,3 +335,39 @@ msgstr "object(物件)"
335335
#:../../c-api/bytes.rst:11
336336
msgid"bytes"
337337
msgstr"bytes(位元組)"
338+
339+
#~ msgid ":attr:`%%`"
340+
#~ msgstr ":attr:`%%`"
341+
342+
#~ msgid ":attr:`%c`"
343+
#~ msgstr ":attr:`%c`"
344+
345+
#~ msgid ":attr:`%d`"
346+
#~ msgstr ":attr:`%d`"
347+
348+
#~ msgid ":attr:`%u`"
349+
#~ msgstr ":attr:`%u`"
350+
351+
#~ msgid ":attr:`%ld`"
352+
#~ msgstr ":attr:`%ld`"
353+
354+
#~ msgid ":attr:`%lu`"
355+
#~ msgstr ":attr:`%lu`"
356+
357+
#~ msgid ":attr:`%zd`"
358+
#~ msgstr ":attr:`%zd`"
359+
360+
#~ msgid ":attr:`%zu`"
361+
#~ msgstr ":attr:`%zu`"
362+
363+
#~ msgid ":attr:`%i`"
364+
#~ msgstr ":attr:`%i`"
365+
366+
#~ msgid ":attr:`%x`"
367+
#~ msgstr ":attr:`%x`"
368+
369+
#~ msgid ":attr:`%s`"
370+
#~ msgstr ":attr:`%s`"
371+
372+
#~ msgid ":attr:`%p`"
373+
#~ msgstr ":attr:`%p`"

‎c-api/capsule.po

Lines changed: 4 additions & 4 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:2023-07-29 00:03+0000\n"
1111
"PO-Revision-Date:2018-05-23 14:30+0000\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -93,7 +93,7 @@ msgstr ""
9393
msgid""
9494
"The *name* parameter must compare exactly to the name stored in the capsule. "
9595
"If the name stored in the capsule is ``NULL``, the *name* passed in must "
96-
"also be ``NULL``. Python uses the C function :c:func:`strcmp` to compare "
96+
"also be ``NULL``. Python uses the C function :c:func:`!strcmp` to compare "
9797
"capsule names."
9898
msgstr""
9999

@@ -166,8 +166,8 @@ msgstr ""
166166
#:../../c-api/capsule.rst:123
167167
msgid""
168168
"In other words, if :c:func:`PyCapsule_IsValid` returns a true value, calls "
169-
"to any of the accessors (any function starting with:c:func:`PyCapsule_Get`) "
170-
"areguaranteed to succeed."
169+
"to any of the accessors (any function starting with``PyCapsule_Get``) are "
170+
"guaranteed to succeed."
171171
msgstr""
172172

173173
#:../../c-api/capsule.rst:127

‎c-api/code.po

Lines changed: 5 additions & 5 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-07-17 17:39+0800\n"
10+
"POT-Creation-Date:2023-07-29 00:03+0000\n"
1111
"PO-Revision-Date:2015-12-09 17:51+0000\n"
1212
"Last-Translator:Liang-Bo Wang <me@liang2.tw>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -60,7 +60,7 @@ msgstr ""
6060
#:../../c-api/code.rst:41
6161
msgid""
6262
"Since the definition of the bytecode changes often, calling :c:func:"
63-
"`PyCode_New` directly can bind you to a precise Python version."
63+
"`PyUnstable_Code_New` directly can bind you to a precise Python version."
6464
msgstr""
6565

6666
#:../../c-api/code.rst:44
@@ -82,9 +82,9 @@ msgstr ""
8282

8383
#:../../c-api/code.rst:61
8484
msgid""
85-
"Similar to :c:func:`PyCode_New`, but with an extra\"posonlyargcount\" for "
86-
"positional-only arguments. The same caveats that apply to ``PyCode_New`` "
87-
"also apply to this function."
85+
"Similar to :c:func:`PyUnstable_Code_New`, but with an extra "
86+
"\"posonlyargcount\" forpositional-only arguments. The same caveats that "
87+
"apply to ``PyUnstable_Code_New``also apply to this function."
8888
msgstr""
8989

9090
#:../../c-api/code.rst:66

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp