-
-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathreflection.po
More file actions
148 lines (131 loc) · 6.85 KB
/
reflection.po
File metadata and controls
148 lines (131 loc) · 6.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# python-doc bot, 2025
# 99 <wh2099@pm.me>, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.14\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-05-05 15:48+0000\n"
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
"Last-Translator: 99 <wh2099@pm.me>, 2026\n"
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#: ../../c-api/reflection.rst:6
msgid "Reflection"
msgstr "反射"
#: ../../c-api/reflection.rst:12
msgid "Use :c:func:`PyEval_GetFrameBuiltins` instead."
msgstr "使用 :c:func:`PyEval_GetFrameBuiltins` 代替。"
#: ../../c-api/reflection.rst:14 ../../c-api/reflection.rst:66
msgid ""
"Return a dictionary of the builtins in the current execution frame, or the "
"interpreter of the thread state if no frame is currently executing."
msgstr "返回当前执行帧中内置对象的字典,如果当前没有帧正在执行,则返回线程状态的解释器中的内置对象字典。"
#: ../../c-api/reflection.rst:22
msgid ""
"Use either :c:func:`PyEval_GetFrameLocals` to obtain the same behaviour as "
"calling :func:`locals` in Python code, or else call "
":c:func:`PyFrame_GetLocals` on the result of :c:func:`PyEval_GetFrame` to "
"access the :attr:`~frame.f_locals` attribute of the currently executing "
"frame."
msgstr ""
"使用 :c:func:`PyEval_GetFrameLocals` 来获取与在 Python 代码中调用 :func:`locals` "
"相同的行为,或者是在 :c:func:`PyEval_GetFrame` 的结果上调用 :c:func:`PyFrame_GetLocals` "
"来访问当前执行帧的 :attr:`~frame.f_locals` 属性。"
#: ../../c-api/reflection.rst:27
msgid ""
"Return a mapping providing access to the local variables in the current "
"execution frame, or ``NULL`` if no frame is currently executing."
msgstr "返回一个提供对当前执行帧中局部变量访问的映射,或者如果没有当前执行帧则返回 ``NULL``。"
#: ../../c-api/reflection.rst:30
msgid ""
"Refer to :func:`locals` for details of the mapping returned at different "
"scopes."
msgstr "请参考 :func:`locals` 了解在不同作用域下返回的映射的详情。"
#: ../../c-api/reflection.rst:32
msgid ""
"As this function returns a :term:`borrowed reference`, the dictionary "
"returned for :term:`optimized scopes <optimized scope>` is cached on the "
"frame object and will remain alive as long as the frame object does. Unlike "
":c:func:`PyEval_GetFrameLocals` and :func:`locals`, subsequent calls to this"
" function in the same frame will update the contents of the cached "
"dictionary to reflect changes in the state of the local variables rather "
"than returning a new snapshot."
msgstr ""
"由于此函数会返回一个 :term:`borrowed reference`,为 :term:`已优化作用域 <optimized scope>` "
"返回的字典将缓存在帧对象上因此会在帧对象存活期间保持存活。不同于 :c:func:`PyEval_GetFrameLocals` 和 "
":func:`locals`,在相同帧中对该函数的后续调用将会更新已缓存字典的内容以反映局部变量状态的变化而不是返回一个新的快照。"
#: ../../c-api/reflection.rst:39
msgid ""
"As part of :pep:`667`, :c:func:`PyFrame_GetLocals`, :func:`locals`, and "
":attr:`FrameType.f_locals <frame.f_locals>` no longer make use of the shared"
" cache dictionary. Refer to the :ref:`What's New entry <whatsnew313-locals-"
"semantics>` for additional details."
msgstr ""
"作为 :pep:`667` 的一部分,:c:func:`PyFrame_GetLocals`, :func:`locals` 和 "
":attr:`FrameType.f_locals <frame.f_locals>` 将不再使用共享的缓存字典。请参阅 :ref:`有什么新变化条目 "
"<whatsnew313-locals-semantics>` 了解详情。"
#: ../../c-api/reflection.rst:50
msgid "Use :c:func:`PyEval_GetFrameGlobals` instead."
msgstr "使用 :c:func:`PyEval_GetFrameGlobals` 代替。"
#: ../../c-api/reflection.rst:52
msgid ""
"Return a dictionary of the global variables in the current execution frame, "
"or ``NULL`` if no frame is currently executing."
msgstr "返回当前执行帧中全局变量的字典,如果没有当前执行的帧则返回 ``NULL``。"
#: ../../c-api/reflection.rst:58
msgid ""
"Return the :term:`attached thread state`'s frame, which is ``NULL`` if no "
"frame is currently executing."
msgstr ""
"返回 :term:`已附加的线程状态 <attached thread state>` 的帧,如果当前没有帧正在执行则为 ``NULL``。"
#: ../../c-api/reflection.rst:61
msgid "See also :c:func:`PyThreadState_GetFrame`."
msgstr "另请参阅 :c:func:`PyThreadState_GetFrame`。"
#: ../../c-api/reflection.rst:74
msgid ""
"Return a dictionary of the local variables in the current execution frame, "
"or ``NULL`` if no frame is currently executing. Equivalent to calling "
":func:`locals` in Python code."
msgstr ""
"返回当前执行帧中局部变量的字典,或者如果没有当前执行帧则返回 ``NULL``。等价于在 Python 代码中调用 :func:`locals`。"
#: ../../c-api/reflection.rst:78
msgid ""
"To access :attr:`~frame.f_locals` on the current frame without making an "
"independent snapshot in :term:`optimized scopes <optimized scope>`, call "
":c:func:`PyFrame_GetLocals` on the result of :c:func:`PyEval_GetFrame`."
msgstr ""
"要访问当前帧上的 :attr:`~frame.f_locals` 而不会在 :term:`已优化作用域 <optimized scope>` "
"中生成独立的快照,可以在 :c:func:`PyEval_GetFrame` 的结果上调用 :c:func:`PyFrame_GetLocals`。"
#: ../../c-api/reflection.rst:87
msgid ""
"Return a dictionary of the global variables in the current execution frame, "
"or ``NULL`` if no frame is currently executing. Equivalent to calling "
":func:`globals` in Python code."
msgstr ""
"返回当前执行帧中全局变量的字典,或者如果没有当前执行帧则返回 ``NULL``。等价于在 Python 代码中调用 :func:`globals`。"
#: ../../c-api/reflection.rst:96
msgid ""
"Return the name of *func* if it is a function, class or instance object, "
"else the name of *func*\\s type."
msgstr "如果 *func* 是函数、类或实例对象,则返回它的名称,否则返回 *func* 的类型的名称。"
#: ../../c-api/reflection.rst:102
msgid ""
"Return a description string, depending on the type of *func*. Return values "
"include \"()\" for functions and methods, \" constructor\", \" instance\", "
"and \" object\". Concatenated with the result of "
":c:func:`PyEval_GetFuncName`, the result will be a description of *func*."
msgstr ""
"根据 *func* 的类型返回描述字符串。返回值包括函数和方法的 \"()\", \" constructor\", \" instance\" 和 "
"\" object\"。与 :c:func:`PyEval_GetFuncName` 的结果连接,结果将是 *func* 的描述。"