|
1 | 1 | # SOME DESCRIPTIVE TITLE.
|
2 |
| -# Copyright (C) 2001-2023, Python Software Foundation |
| 2 | +# Copyright (C) 2001-2024, Python Software Foundation |
3 | 3 | # This file is distributed under the same license as the Python package.
|
4 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 | 5 | #
|
|
16 | 16 | #, fuzzy
|
17 | 17 | msgid ""
|
18 | 18 | msgstr ""
|
19 |
| -"Project-Id-Version: Python 3.12\n" |
| 19 | +"Project-Id-Version: Python 3.13\n" |
20 | 20 | "Report-Msgid-Bugs-To: \n"
|
21 |
| -"POT-Creation-Date: 2023-12-29 14:13+0000\n" |
| 21 | +"POT-Creation-Date: 2024-05-10 22:05-0300\n" |
22 | 22 | "PO-Revision-Date: 2021-06-28 00:47+0000\n"
|
23 | 23 | "Last-Translator: Freesand Leo <yuqinju@163.com>, 2023\n"
|
24 | 24 | "Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
|
@@ -352,22 +352,15 @@ msgstr ""
|
352 | 352 |
|
353 | 353 | #: ../../c-api/bytes.rst:194
|
354 | 354 | msgid ""
|
355 |
| -"A way to resize a bytes object even though it is \"immutable\". Only use " |
356 |
| -"this to build up a brand new bytes object; don't use this if the bytes may " |
357 |
| -"already be known in other parts of the code. It is an error to call this " |
358 |
| -"function if the refcount on the input bytes object is not one. Pass the " |
359 |
| -"address of an existing bytes object as an lvalue (it may be written into), " |
360 |
| -"and the new size desired. On success, *\\*bytes* holds the resized bytes " |
361 |
| -"object and ``0`` is returned; the address in *\\*bytes* may differ from its " |
362 |
| -"input value. If the reallocation fails, the original bytes object at " |
363 |
| -"*\\*bytes* is deallocated, *\\*bytes* is set to ``NULL``, :exc:`MemoryError`" |
364 |
| -" is set, and ``-1`` is returned." |
| 355 | +"Resize a bytes object. *newsize* will be the new length of the bytes object." |
| 356 | +" You can think of it as creating a new bytes object and destroying the old " |
| 357 | +"one, only more efficiently. Pass the address of an existing bytes object as " |
| 358 | +"an lvalue (it may be written into), and the new size desired. On success, " |
| 359 | +"*\\*bytes* holds the resized bytes object and ``0`` is returned; the address" |
| 360 | +" in *\\*bytes* may differ from its input value. If the reallocation fails, " |
| 361 | +"the original bytes object at *\\*bytes* is deallocated, *\\*bytes* is set to" |
| 362 | +" ``NULL``, :exc:`MemoryError` is set, and ``-1`` is returned." |
365 | 363 | msgstr ""
|
366 |
| -"改变字节串大小的一种方式,即使其为“不可变对象”。 此方式仅用于创建全新的字节串对象;如果字节串在代码的其他部分已知则不可使用此方式。 " |
367 |
| -"如果输入字节串对象的引用计数不为一则调用此函数将报错。 传入一个现有字节串对象的地址作为 lvalue(它可能会被写入),并传入希望的新大小。 " |
368 |
| -"当成功时,*\\*bytes* 将存放改变大小后的字节串对象并返回 ``0``;*\\*bytes* 中的地址可能与其输入值不同。 如果重新分配失败,则" |
369 |
| -" *\\*bytes* 上的原字节串对象将被撤销分配,*\\*bytes* 会被设为 ``NULL``,同时设置 :exc:`MemoryError` " |
370 |
| -"并返回 ``-1``。" |
371 | 364 |
|
372 | 365 | #: ../../c-api/bytes.rst:11
|
373 | 366 | msgid "object"
|
|
0 commit comments