Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f67dce5

Browse files
[po] auto sync
1 parent a7c6982 commit f67dce5

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

c-api/memory.po

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ msgstr "``void* realloc(void *ctx, void *ptr, size_t new_size)``"
598598

599599
#: ../../c-api/memory.rst:377
600600
msgid "allocate or resize a memory block"
601-
msgstr ""
601+
msgstr "分配一个内存块或调整其大小"
602602

603603
#: ../../c-api/memory.rst:379
604604
msgid "``void free(void *ctx, void *ptr)``"
@@ -613,10 +613,12 @@ msgid ""
613613
"The :c:type:`PyMemAllocator` structure was renamed to "
614614
":c:type:`PyMemAllocatorEx` and a new ``calloc`` field was added."
615615
msgstr ""
616+
" :c:type:`PyMemAllocator` 结构被重命名为 :c:type:`PyMemAllocatorEx` 并且添加了一个字段 "
617+
"``calloc`` 。"
616618

617619
#: ../../c-api/memory.rst:389
618620
msgid "Enum used to identify an allocator domain. Domains:"
619-
msgstr ""
621+
msgstr "用来识别分配器域的枚举类。域有:"
620622

621623
#: ../../c-api/memory.rst:393 ../../c-api/memory.rst:402
622624
#: ../../c-api/memory.rst:411
@@ -673,35 +675,39 @@ msgstr ":c:func:`PyObject_Free`"
673675

674676
#: ../../c-api/memory.rst:420
675677
msgid "Get the memory block allocator of the specified domain."
676-
msgstr ""
678+
msgstr "获取指定域的内存块分配器。"
677679

678680
#: ../../c-api/memory.rst:425
679681
msgid "Set the memory block allocator of the specified domain."
680-
msgstr ""
682+
msgstr "设置指定域的内存块分配器。"
681683

682684
#: ../../c-api/memory.rst:427
683685
msgid ""
684686
"The new allocator must return a distinct non-``NULL`` pointer when "
685687
"requesting zero bytes."
686-
msgstr ""
688+
msgstr "当请求零字节时,新的分配器必须返回一个独特的非 ``NULL`` 指针。"
687689

688690
#: ../../c-api/memory.rst:430
689691
msgid ""
690692
"For the :c:data:`PYMEM_DOMAIN_RAW` domain, the allocator must be thread-"
691693
"safe: the :term:`GIL <global interpreter lock>` is not held when the "
692694
"allocator is called."
693695
msgstr ""
696+
"对于 :c:data:`PYMEM_DOMAIN_RAW` 域,分配器必须是线程安全的:当分配器被调用时,不持有 :term:`全局解释器锁 "
697+
"<global interpreter lock>` 。"
694698

695699
#: ../../c-api/memory.rst:434
696700
msgid ""
697701
"If the new allocator is not a hook (does not call the previous allocator), "
698702
"the :c:func:`PyMem_SetupDebugHooks` function must be called to reinstall the"
699703
" debug hooks on top on the new allocator."
700704
msgstr ""
705+
"如果新的分配器不是钩子(不调用之前的分配器),必须调用 :c:func:`PyMem_SetupDebugHooks` "
706+
"函数在新分配器上重新安装调试钩子。"
701707

702708
#: ../../c-api/memory.rst:441
703709
msgid "Setup hooks to detect bugs in the Python memory allocator functions."
704-
msgstr ""
710+
msgstr "设置检测 Python 内存分配器函数中错误的钩子。"
705711

706712
#: ../../c-api/memory.rst:443
707713
msgid ""

whatsnew/3.5.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# Freesand Leo <[email protected]>, 2020
1212
# jacky <[email protected]>, 2020
1313
# ppcfish <[email protected]>, 2020
14+
# Sean Chao <[email protected]>, 2020
1415
#
1516
#, fuzzy
1617
msgid ""
@@ -19,7 +20,7 @@ msgstr ""
1920
"Report-Msgid-Bugs-To: \n"
2021
"POT-Creation-Date: 2020-02-09 12:40+0000\n"
2122
"PO-Revision-Date: 2020-05-30 12:18+0000\n"
22-
"Last-Translator: ppcfish <ppcfish@gmail.com>, 2020\n"
23+
"Last-Translator: Sean Chao <seanchao0804@gmail.com>, 2020\n"
2324
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2425
"MIME-Version: 1.0\n"
2526
"Content-Type: text/plain; charset=UTF-8\n"
@@ -3348,6 +3349,8 @@ msgid ""
33483349
"The :c:type:`PyMemAllocator` structure was renamed to "
33493350
":c:type:`PyMemAllocatorEx` and a new ``calloc`` field was added."
33503351
msgstr ""
3352+
" :c:type:`PyMemAllocator` 结构被重命名为 :c:type:`PyMemAllocatorEx` 并且添加了一个字段 "
3353+
"``calloc`` 。"
33513354

33523355
#: ../../whatsnew/3.5.rst:2523
33533356
msgid ""

0 commit comments

Comments
 (0)