@@ -17,7 +17,7 @@ msgid ""
17
17
msgstr ""
18
18
"Project-Id-Version : Python 3.9\n "
19
19
"Report-Msgid-Bugs-To : \n "
20
- "POT-Creation-Date : 2024-04-19 21:47 +0000\n "
20
+ "POT-Creation-Date : 2024-05-03 21:11 +0000\n "
21
21
"PO-Revision-Date : 2017-02-16 23:44+0000\n "
22
22
"Last-Translator : Freesand Leo <yuqinju@163.com>, 2024\n "
23
23
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -218,6 +218,8 @@ msgid ""
218
218
" or returned incorrect results for non-contiguous or multi-dimensional input"
219
219
" have been fixed."
220
220
msgstr ""
221
+
8000
span>"新的 memoryview 实现全面修复了 Py_buffer 结构体中曾导致多起崩溃报告的动态分配字段的所有权和生命周期问题。 "
222
+ "此外,还修复了多个函数在非连续或多维输入时崩溃或返回不正确结果的问题。"
221
223
222
224
#: ../../whatsnew/3.3.rst:150
223
225
msgid ""
@@ -226,6 +228,8 @@ msgid ""
226
228
"of them work in full generality for non-contiguous arrays and arrays with "
227
229
"suboffsets."
228
230
msgstr ""
231
+ "现在 memoryview 对象具有符合 PEP-3118 标准的 getbufferproc(),可以检查使用者的请求类型。 "
232
+ "新增了许多新的特性,其中的大部分已适用于非连续数组和带有子偏移量的数组。"
229
233
230
234
#: ../../whatsnew/3.3.rst:155
231
235
msgid ""
@@ -234,6 +238,8 @@ msgid ""
234
238
"basic and compound flags. The memory layout of non-contiguous and multi-"
235
239
"dimensional NumPy-style arrays is explained."
236
240
msgstr ""
241
+ "文档已进行更新,清楚地列出了导出方和使用方的责任。 缓冲区请求旗标志被划分为基本旗标和复合旗标。 对非连续和多维的 NumPy "
242
+ "风格数组的内存布局进行了说明。"
237
243
238
244
#: ../../whatsnew/3.3.rst:161 ../../whatsnew/3.3.rst:1122
239
245
msgid "Features"
@@ -265,6 +271,8 @@ msgid ""
265
271
"One-dimensional memoryviews of hashable (read-only) types with formats B, b "
266
272
"or c are now hashable. (Contributed by Antoine Pitrou in :issue:`13411`.)"
267
273
msgstr ""
274
+ "格式为 B、b 或 c 的可哈希(只读)类型的一维 memoryview 现在将是可哈希的。 (由 Antoine Pitrou 在 "
275
+ ":issue:`13411` 中贡献。)"
268
276
269
277
#: ../../whatsnew/3.3.rst:176
270
278
msgid ""
@@ -284,14 +292,16 @@ msgstr "官方的最大维度数量限制已更改为 64。"
284
292
msgid ""
285
293
"The representation of empty shape, strides and suboffsets is now an empty "
286
294
"tuple instead of ``None``."
287
- msgstr ""
295
+ msgstr "空形状、区间和子偏移量的表示形式现在是空元组而不是 ``None``。 "
288
296
289
297
#: ../../whatsnew/3.3.rst:187
290
298
msgid ""
291
299
"Accessing a memoryview element with format 'B' (unsigned bytes) now returns "
292
300
"an integer (in accordance with the struct module syntax). For returning a "
293
301
"bytes object the view must be cast to 'c' first."
294
302
msgstr ""
303
+ "现在对格式为 'B' (无符号字节型) 的 memoryview 元素的访问将返回一个整数(遵循结构体模块语法)。 "
304
+ "要返回字节串对象则必须先将视图强制转换为 'c'。"
295
305
296
306
#: ../../whatsnew/3.3.rst:191
297
307
msgid ""
@@ -300,11 +310,13 @@ msgid ""
300
310
"syntax are supported. Views with unrecognised format strings are still "
301
311
"permitted, but will always compare as unequal, regardless of view contents."
302
312
msgstr ""
313
+ "现在 memoryview 比较将使用操作数的逻辑结构并会按值来比较所有数组元素。 结构体模块语法中的所有格式化字符串均受到支持。 "
314
+ "带有不可识别的格式化字符串的视图仍然被允许,但无论视图内容如何比较结果总是不相等。"
303
315
304
316
#: ../../whatsnew/3.3.rst:197
305
317
msgid ""
306
318
"For further changes see `Build and C API Changes`_ and `Porting C code`_."
307
- msgstr ""
319
+ msgstr "更多改变请参阅 `Build and C API Changes`_ 和 `Porting C code`_。 "
308
320
309
321
#: ../../whatsnew/3.3.rst:199
310
322
msgid "(Contributed by Stefan Krah in :issue:`10181`.)"
0 commit comments