File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -627,28 +627,28 @@ msgstr "setter"
627
627
msgid ""
628
628
"optional C function to set or delete the attribute, if omitted the attribute"
629
629
" is readonly"
630
- msgstr ""
630
+ msgstr "用于设置或删除属性的可选 C 函数,如果省略则属性将为只读 "
631
631
632
632
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:355
633
633
msgid "doc"
634
- msgstr ""
634
+ msgstr "doc "
635
635
636
636
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:355
637
637
msgid "optional docstring"
638
- msgstr ""
638
+ msgstr "可选的文档字符串 "
639
639
640
640
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:357
641
641
msgid "closure"
642
- msgstr ""
642
+ msgstr "closure "
643
643
644
644
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:357
645
645
msgid "void \\ *"
646
- msgstr ""
646
+ msgstr "void \\ * "
647
647
648
648
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:357
649
649
msgid ""
650
650
"optional function pointer, providing additional data for getter and setter"
651
- msgstr ""
651
+ msgstr "可选的函数指针,为 getter 和 setter 提供附加数据 "
652
652
653
653
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:362
654
654
msgid ""
@@ -660,7 +660,7 @@ msgstr ""
660
660
msgid ""
661
661
"It should return a new reference on success or ``NULL`` with a set exception"
662
662
" on failure."
663
- msgstr ""
663
+ msgstr "它应当在成功时返回一个新的引用或在失败时返回 ``NULL`` 并设置异常。 "
664
664
665
665
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/c-api/structures.rst:370
666
666
msgid ""
@@ -673,4 +673,4 @@ msgstr ""
673
673
msgid ""
674
674
"In case the attribute should be deleted the second parameter is ``NULL``. "
675
675
"Should return ``0`` on success or ``-1`` with a set exception on failure."
676
- msgstr ""
676
+ msgstr "对于属性要被删除的情况第二个形参应为 ``NULL``。 成功时应返回 ``0`` 或在失败时返回 ``-1`` 并设置异常。 "
Original file line number Diff line number Diff line change @@ -62,6 +62,9 @@ msgid ""
62
62
"command line option. The :func:`tracemalloc.start` function can be called at"
63
63
" runtime to start tracing Python memory allocations."
64
64
msgstr ""
65
+ "要追踪 Python 所分配的大部分内存块,模块应当通过将 :envvar:`PYTHONTRACEMALLOC` 环境变量设置为 "
66
+ "``1``,或是通过使用 :option:`-X` ``tracemalloc`` 命令行选项来尽可能早地启动。 可以在运行时调用 "
67
+ ":func:`tracemalloc.start` 函数来启动追踪 Python 内存分配。memory allocations."
65
68
66
69
#: /home/runner/work/docspush-transifex/docspush-transifex/cpython/Doc/library/tracemalloc.rst:27
67
70
msgid ""
You can’t perform that action at this time.
0 commit comments