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

Commitc5158d8

Browse files
committed
chore: merge from CPython 3.12
1 parent0da1846 commitc5158d8

File tree

192 files changed

+36115
-27749
lines changed

Some content is hidden

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

192 files changed

+36115
-27749
lines changed

‎c-api/arg.po

Lines changed: 164 additions & 204 deletions
Large diffs are not rendered by default.

‎c-api/bool.po

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ msgid ""
1010
msgstr ""
1111
"Project-Id-Version:Python 3.11\n"
1212
"Report-Msgid-Bugs-To:\n"
13-
"POT-Creation-Date:2021-06-29 12:56+0000\n"
13+
"POT-Creation-Date:2023-07-17 17:39+0800\n"
1414
"PO-Revision-Date:2021-12-09 20:47+0800\n"
1515
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1616
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -27,9 +27,10 @@ msgid "Boolean Objects"
2727
msgstr"Boolean(布林)物件"
2828

2929
#:../../c-api/bool.rst:8
30+
#,fuzzy
3031
msgid""
3132
"Booleans in Python are implemented as a subclass of integers. There are "
32-
"only two booleans, :const:`Py_False` and :const:`Py_True`. As such, the "
33+
"only two booleans, :c:data:`Py_False` and :c:data:`Py_True`. As such, the "
3334
"normal creation and deletion functions don't apply to booleans. The "
3435
"following macros are available, however."
3536
msgstr""
@@ -45,37 +46,50 @@ msgstr ""
4546
"如果 *o* 的型別為 :c:data:`PyBool_Type` 則回傳真值。此函式總是會成功執行。"
4647

4748
#:../../c-api/bool.rst:22
49+
#,fuzzy
4850
msgid""
49-
"The Python ``False`` object. This object has no methods. It needs to be "
50-
"treated just like any other object with respect to reference counts."
51+
"The Python ``False`` object. This object has no methods and is `immortal "
52+
"<https://peps.python.org/pep-0683/>`_."
5153
msgstr""
5254
"Python 的 ``False`` 物件。此物件沒有任何方法。在參照 (reference) 計數上必須有"
5355
"著和其他物件一樣的處理方式。"
5456

55-
#:../../c-api/bool.rst:28
57+
#:../../c-api/bool.rst:25
58+
msgid":c:data:`Py_False` is immortal."
59+
msgstr""
60+
61+
#:../../c-api/bool.rst:31
62+
#,fuzzy
5663
msgid""
57-
"The Python ``True`` object. This object has no methods. It needs to be "
58-
"treated just like any other object with respect to reference counts."
64+
"The Python ``True`` object. This object has no methods and is `immortal "
65+
"<https://peps.python.org/pep-0683/>`_."
5966
msgstr""
6067
"Python 的 ``True`` 物件。此物件沒有任何方法。在參照計數上必須有著和其他物件一"
6168
"樣的處理方式。"
6269

6370
#:../../c-api/bool.rst:34
64-
msgid""
65-
"Return :const:`Py_False` from a function, properly incrementing its "
66-
"reference count."
67-
msgstr"從函式回傳 :const:`Py_False`\\ ,並適當的增加它的參照計數。"
71+
msgid":c:data:`Py_True` is immortal."
72+
msgstr""
6873

6974
#:../../c-api/bool.rst:40
70-
msgid""
71-
"Return :const:`Py_True` from a function, properly incrementing its reference "
72-
"count."
73-
msgstr"從函式回傳 :const:`Py_True`\\ ,並適當的增加它的參照計數。"
75+
#,fuzzy
76+
msgid"Return :c:data:`Py_False` from a function."
77+
msgstr"從函式回傳 :const:`Py_False`\\ ,並適當的增加它的參照計數。"
7478

75-
#:../../c-api/bool.rst:46
79+
#:../../c-api/bool.rst:45
80+
msgid"Return :c:data:`Py_True` from a function."
81+
msgstr""
82+
83+
#:../../c-api/bool.rst:50
84+
#,fuzzy
7685
msgid""
77-
"Returna new reference to :const:`Py_True` or :const:`Py_False` depending on "
78-
"the truth valueof *v*."
86+
"Return:c:data:`Py_True` or :c:data:`Py_False`, depending on the truth value "
87+
"of *v*."
7988
msgstr""
8089
"根據 *v* 的實際值來回傳一個 :const:`Py_True` 或者 :const:`Py_False` 的新參"
8190
"照。"
91+
92+
#~ msgid ""
93+
#~ "Return :const:`Py_True` from a function, properly incrementing its "
94+
#~ "reference count."
95+
#~ msgstr "從函式回傳 :const:`Py_True`\\ ,並適當的增加它的參照計數。"

‎c-api/bytes.po

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version:Python 3.11\n"
99
"Report-Msgid-Bugs-To:\n"
10-
"POT-Creation-Date:2023-05-09 00:15+0000\n"
10+
"POT-Creation-Date:2023-07-17 17:39+0800\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-"
@@ -74,187 +74,187 @@ msgid ""
7474
"allowed:"
7575
msgstr""
7676

77-
#:../../c-api/bytes.rst:68
77+
#:../../c-api/bytes.rst:65
7878
msgid"Format Characters"
7979
msgstr""
8080

81-
#:../../c-api/bytes.rst:68
81+
#:../../c-api/bytes.rst:65
8282
msgid"Type"
8383
msgstr""
8484

85-
#:../../c-api/bytes.rst:68
85+
#:../../c-api/bytes.rst:65
8686
msgid"Comment"
8787
msgstr""
8888

89-
#:../../c-api/bytes.rst:70
89+
#:../../c-api/bytes.rst:67
9090
msgid":attr:`%%`"
9191
msgstr":attr:`%%`"
9292

93-
#:../../c-api/bytes.rst:70
93+
#:../../c-api/bytes.rst:67
9494
msgid"*n/a*"
9595
msgstr"*n/a*"
9696

97-
#:../../c-api/bytes.rst:70
97+
#:../../c-api/bytes.rst:67
9898
msgid"The literal % character."
9999
msgstr""
100100

101-
#:../../c-api/bytes.rst:72
101+
#:../../c-api/bytes.rst:69
102102
msgid":attr:`%c`"
103103
msgstr":attr:`%c`"
104104

105-
#:../../c-api/bytes.rst:72../../c-api/bytes.rst:75../../c-api/bytes.rst:93
106-
#:../../c-api/bytes.rst:96
105+
#:../../c-api/bytes.rst:69../../c-api/bytes.rst:72../../c-api/bytes.rst:90
106+
#:../../c-api/bytes.rst:93
107107
msgid"int"
108108
msgstr"int"
109109

110-
#:../../c-api/bytes.rst:72
110+
#:../../c-api/bytes.rst:69
111111
msgid"A single byte, represented as a C int."
112112
msgstr""
113113

114-
#:../../c-api/bytes.rst:75
114+
#:../../c-api/bytes.rst:72
115115
msgid":attr:`%d`"
116116
msgstr":attr:`%d`"
117117

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

122-
#:../../c-api/bytes.rst:78
122+
#:../../c-api/bytes.rst:75
123123
msgid":attr:`%u`"
124124
msgstr":attr:`%u`"
125125

126-
#:../../c-api/bytes.rst:78
126+
#:../../c-api/bytes.rst:75
127127
msgid"unsigned int"
128128
msgstr"unsigned int"
129129

130-
#:../../c-api/bytes.rst:78
130+
#:../../c-api/bytes.rst:75
131131
msgid"Equivalent to ``printf(\"%u\")``. [1]_"
132132
msgstr"等價於 ``printf(\"%u\")``. [1]_"
133133

134-
#:../../c-api/bytes.rst:81
134+
#:../../c-api/bytes.rst:78
135135
msgid":attr:`%ld`"
136136
msgstr":attr:`%ld`"
137137

138-
#:../../c-api/bytes.rst:81
138+
#:../../c-api/bytes.rst:78
139139
msgid"long"
140140
msgstr"long"
141141

142-
#:../../c-api/bytes.rst:81
142+
#:../../c-api/bytes.rst:78
143143
msgid"Equivalent to ``printf(\"%ld\")``. [1]_"
144144
msgstr"等價於 ``printf(\"%ld\")``. [1]_"
145145

146-
#:../../c-api/bytes.rst:84
146+
#:../../c-api/bytes.rst:81
147147
msgid":attr:`%lu`"
148148
msgstr":attr:`%lu`"
149149

150-
#:../../c-api/bytes.rst:84
150+
#:../../c-api/bytes.rst:81
151151
msgid"unsigned long"
152152
msgstr"unsigned long"
153153

154-
#:../../c-api/bytes.rst:84
154+
#:../../c-api/bytes.rst:81
155155
msgid"Equivalent to ``printf(\"%lu\")``. [1]_"
156156
msgstr"等價於 ``printf(\"%lu\")``. [1]_"
157157

158-
#:../../c-api/bytes.rst:87
158+
#:../../c-api/bytes.rst:84
159159
msgid":attr:`%zd`"
160160
msgstr":attr:`%zd`"
161161

162-
#:../../c-api/bytes.rst:87
162+
#:../../c-api/bytes.rst:84
163163
msgid":c:type:`\\ Py_ssize_t`"
164164
msgstr":c:type:`\\ Py_ssize_t`"
165165

166-
#:../../c-api/bytes.rst:87
166+
#:../../c-api/bytes.rst:84
167167
msgid"Equivalent to ``printf(\"%zd\")``. [1]_"
168168
msgstr"等價於 ``printf(\"%zd\")``. [1]_"
169169

170-
#:../../c-api/bytes.rst:90
170+
#:../../c-api/bytes.rst:87
171171
msgid":attr:`%zu`"
172172
msgstr":attr:`%zu`"
173173

174-
#:../../c-api/bytes.rst:90
174+
#:../../c-api/bytes.rst:87
175175
msgid"size_t"
176176
msgstr"size_t"
177177

178-
#:../../c-api/bytes.rst:90
178+
#:../../c-api/bytes.rst:87
179179
msgid"Equivalent to ``printf(\"%zu\")``. [1]_"
180180
msgstr"等價於 ``printf(\"%zu\")``. [1]_"
181181

182-
#:../../c-api/bytes.rst:93
182+
#:../../c-api/bytes.rst:90
183183
msgid":attr:`%i`"
184184
msgstr":attr:`%i`"
185185

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

190-
#:../../c-api/bytes.rst:96
190+
#:../../c-api/bytes.rst:93
191191
msgid":attr:`%x`"
192192
msgstr":attr:`%x`"
193193

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

198-
#:../../c-api/bytes.rst:99
198+
#:../../c-api/bytes.rst:96
199199
msgid":attr:`%s`"
200200
msgstr":attr:`%s`"
201201

202-
#:../../c-api/bytes.rst:99
202+
#:../../c-api/bytes.rst:96
203203
msgid"const char\\*"
204204
msgstr"const char\\*"
205205

206-
#:../../c-api/bytes.rst:99
206+
#:../../c-api/bytes.rst:96
207207
msgid"A null-terminated C character array."
208208
msgstr""
209209

210-
#:../../c-api/bytes.rst:102
210+
#:../../c-api/bytes.rst:99
211211
msgid":attr:`%p`"
212212
msgstr":attr:`%p`"
213213

214-
#:../../c-api/bytes.rst:102
214+
#:../../c-api/bytes.rst:99
215215
msgid"const void\\*"
216216
msgstr"const void\\*"
217217

218-
#:../../c-api/bytes.rst:102
218+
#:../../c-api/bytes.rst:99
219219
msgid""
220220
"The hex representation of a C pointer. Mostly equivalent to "
221221
"``printf(\"%p\")`` except that it is guaranteed to start with the literal "
222222
"``0x`` regardless of what the platform's ``printf`` yields."
223223
msgstr""
224224

225-
#:../../c-api/bytes.rst:111
225+
#:../../c-api/bytes.rst:108
226226
msgid""
227227
"An unrecognized format character causes all the rest of the format string to "
228228
"be copied as-is to the result object, and any extra arguments discarded."
229229
msgstr""
230230

231-
#:../../c-api/bytes.rst:114
231+
#:../../c-api/bytes.rst:111
232232
msgid""
233233
"For integer specifiers (d, u, ld, lu, zd, zu, i, x): the 0-conversion flag "
234234
"has effect even when a precision is given."
235235
msgstr""
236236

237-
#:../../c-api/bytes.rst:120
237+
#:../../c-api/bytes.rst:117
238238
msgid""
239239
"Identical to :c:func:`PyBytes_FromFormat` except that it takes exactly two "
240240
"arguments."
241241
msgstr""
242242

243-
#:../../c-api/bytes.rst:126
243+
#:../../c-api/bytes.rst:123
244244
msgid""
245245
"Return the bytes representation of object *o* that implements the buffer "
246246
"protocol."
247247
msgstr""
248248

249-
#:../../c-api/bytes.rst:132
249+
#:../../c-api/bytes.rst:129
250250
msgid"Return the length of the bytes in bytes object *o*."
251251
msgstr""
252252

253-
#:../../c-api/bytes.rst:137
253+
#:../../c-api/bytes.rst:134
254254
msgid"Similar to :c:func:`PyBytes_Size`, but without error checking."
255255
msgstr""
256256

257-
#:../../c-api/bytes.rst:142
257+
#:../../c-api/bytes.rst:139
258258
msgid""
259259
"Return a pointer to the contents of *o*. The pointer refers to the internal "
260260
"buffer of *o*, which consists of ``len(o) + 1`` bytes. The last byte in the "
@@ -265,24 +265,24 @@ msgid ""
265265
"`PyBytes_AsString` returns ``NULL`` and raises :exc:`TypeError`."
266266
msgstr""
267267

268-
#:../../c-api/bytes.rst:154
268+
#:../../c-api/bytes.rst:151
269269
msgid"Similar to :c:func:`PyBytes_AsString`, but without error checking."
270270
msgstr""
271271

272-
#:../../c-api/bytes.rst:159
272+
#:../../c-api/bytes.rst:156
273273
msgid""
274274
"Return the null-terminated contents of the object *obj* through the output "
275275
"variables *buffer* and *length*."
276276
msgstr""
277277

278-
#:../../c-api/bytes.rst:162
278+
#:../../c-api/bytes.rst:159
279279
msgid""
280280
"If *length* is ``NULL``, the bytes object may not contain embedded null "
281281
"bytes; if it does, the function returns ``-1`` and a :exc:`ValueError` is "
282282
"raised."
283283
msgstr""
284284

285-
#:../../c-api/bytes.rst:166
285+
#:../../c-api/bytes.rst:163
286286
msgid""
287287
"The buffer refers to an internal buffer of *obj*, which includes an "
288288
"additional null byte at the end (not counted in *length*). The data must "
@@ -292,13 +292,13 @@ msgid ""
292292
"returns ``-1`` and raises :exc:`TypeError`."
293293
msgstr""
294294

295-
#:../../c-api/bytes.rst:173
295+
#:../../c-api/bytes.rst:170
296296
msgid""
297297
"Previously, :exc:`TypeError` was raised when embedded null bytes were "
298298
"encountered in the bytes object."
299299
msgstr""
300300

301-
#:../../c-api/bytes.rst:180
301+
#:../../c-api/bytes.rst:177
302302
msgid""
303303
"Create a new bytes object in *\\*bytes* containing the contents of *newpart* "
304304
"appended to *bytes*; the caller will own the new reference. The reference "
@@ -307,14 +307,14 @@ msgid ""
307307
"of *\\*bytes* will be set to ``NULL``; the appropriate exception will be set."
308308
msgstr""
309309

310-
#:../../c-api/bytes.rst:189
310+
#:../../c-api/bytes.rst:186
311311
msgid""
312312
"Create a new bytes object in *\\*bytes* containing the contents of *newpart* "
313313
"appended to *bytes*. This version decrements the reference count of "
314314
"*newpart*."
315315
msgstr""
316316

317-
#:../../c-api/bytes.rst:196
317+
#:../../c-api/bytes.rst:193
318318
msgid""
319319
"A way to resize a bytes object even though it is\"immutable\". Only use "
320320
"this to build up a brand new bytes object; don't use this if the bytes may "

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp