@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version: Python 3.13\n"
13
13
"Report-Msgid-Bugs-To: \n"
14
- "POT-Creation-Date: 2024-05-24 14:15+0000\n"
14
+ "POT-Creation-Date: 2024-06-07 14:15+0000\n"
15
15
"PO-Revision-Date: 2021-06-28 00:50+0000\n"
16
16
"Last-Translator: tomo, 2021\n"
17
17
"Language-Team: Japanese (https://app.transifex.com/python-doc/teams/5390/"
@@ -26,51 +26,111 @@ msgstr ""
26
26
msgid "Reflection"
27
27
msgstr "リフレクション"
28
28
29
- #: ../../c-api/reflection.rst:10
29
+ #: ../../c-api/reflection.rst:12
30
+ msgid "Use :c:func:`PyEval_GetFrameBuiltins` instead."
31
+ msgstr ""
32
+
33
+ #: ../../c-api/reflection.rst:14 ../../c-api/reflection.rst:66
30
34
msgid ""
31
35
"Return a dictionary of the builtins in the current execution frame, or the "
32
36
"interpreter of the thread state if no frame is currently executing."
33
37
msgstr ""
34
38
"現在の実行フレーム内のビルトインの辞書か、もし実行中のフレームがなければス"
35
39
"レッド状態のインタプリタのビルトイン辞書を返します。"
36
40
37
- #: ../../c-api/reflection.rst:16
41
+ #: ../../c-api/reflection.rst:22
38
42
msgid ""
39
- "Return a dictionary of the local variables in the current execution frame, "
40
- "or ``NULL`` if no frame is currently executing."
43
+ "Use either :c:func:`PyEval_GetFrameLocals` to obtain the same behaviour as "
44
+ "calling :func:`locals` in Python code, or else call :c:func:"
45
+ "`PyFrame_GetLocals` on the result of :c:func:`PyEval_GetFrame` to access "
46
+ "the :attr:`~frame.f_locals` attribute of the currently executing frame."
41
47
msgstr ""
42
- "現在の実行フレーム内のローカル変数の辞書か、実行中のフレームがなければ "
43
- "``NULL`` を返します。"
44
48
45
- #: ../../c-api/reflection.rst:22
49
+ #: ../../c-api/reflection.rst:27
50
+ msgid ""
51
+ "Return a mapping providing access to the local variables in the current "
52
+ "execution frame, or ``NULL`` if no frame is currently executing."
53
+ msgstr ""
54
+
55
+ #: ../../c-api/reflection.rst:30
56
+ msgid ""
57
+ "Refer to :func:`locals` for details of the mapping returned at different "
58
+ "scopes."
59
+ msgstr ""
60
+
61
+ #: ../../c-api/reflection.rst:32
62
+ msgid ""
63
+ "As this function returns a :term:`borrowed reference`, the dictionary "
64
+ "returned for :term:`optimized scopes <optimized scope>` is cached on the "
65
+ "frame object and will remain alive as long as the frame object does. Unlike :"
66
+ "c:func:`PyEval_GetFrameLocals` and :func:`locals`, subsequent calls to this "
67
+ "function in the same frame will update the contents of the cached dictionary "
68
+ "to reflect changes in the state of the local variables rather than returning "
69
+ "a new snapshot."
70
+ msgstr ""
71
+
72
+ #: ../../c-api/reflection.rst:39
73
+ msgid ""
74
+ "As part of :pep:`667`, :c:func:`PyFrame_GetLocals`, :func:`locals`, and :"
75
+ "attr:`FrameType.f_locals <frame.f_locals>` no longer make use of the shared "
76
+ "cache dictionary. Refer to the :ref:`What's New entry <whatsnew313-locals-"
77
+ "semantics>` for additional details."
78
+ msgstr ""
79
+
80
+ #: ../../c-api/reflection.rst:50
81
+ msgid "Use :c:func:`PyEval_GetFrameGlobals` instead."
82
+ msgstr ""
83
+
84
+ #: ../../c-api/reflection.rst:52
46
85
msgid ""
47
86
"Return a dictionary of the global variables in the current execution frame, "
48
87
"or ``NULL`` if no frame is currently executing."
49
88
msgstr ""
50
89
"現在の実行フレーム内のグローバル変数の辞書か、実行中のフレームがなければ "
51
90
"``NULL`` を返します。"
52
91
53
- #: ../../c-api/reflection.rst:28
92
+ #: ../../c-api/reflection.rst:58
54
93
msgid ""
55
94
"Return the current thread state's frame, which is ``NULL`` if no frame is "
56
95
"currently executing."
57
96
msgstr ""
58
97
"現在のスレッド状態のフレームを返します。現在実行中のフレームがなければ "
59
98
"``NULL`` を返します。"
60
99
61
- #: ../../c-api/reflection.rst:31
100
+ #: ../../c-api/reflection.rst:61
62
101
msgid "See also :c:func:`PyThreadState_GetFrame`."
63
102
msgstr ""
64
103
65
- #: ../../c-api/reflection.rst:36
104
+ #: ../../c-api/reflection.rst:74
105
+ msgid ""
106
+ "Return a dictionary of the local variables in the current execution frame, "
107
+ "or ``NULL`` if no frame is currently executing. Equivalent to calling :func:"
108
+ "`locals` in Python code."
109
+ msgstr ""
110
+
111
+ #: ../../c-api/reflection.rst:78
112
+ msgid ""
113
+ "To access :attr:`~frame.f_locals` on the current frame without making an "
114
+ "independent snapshot in :term:`optimized scopes <optimized scope>`, call :c:"
115
+ "func:`PyFrame_GetLocals` on the result of :c:func:`PyEval_GetFrame`."
116
+ msgstr ""
117
+
118
+ #: ../../c-api/reflection.rst:87
119
+ msgid ""
120
+ "Return a dictionary of the global variables in the current execution frame, "
121
+ "or ``NULL`` if no frame is currently executing. Equivalent to calling :func:"
122
+ "`globals` in Python code."
123
+ msgstr ""
124
+
125
+ #: ../../c-api/reflection.rst:96
66
126
msgid ""
67
127
"Return the name of *func* if it is a function, class or instance object, "
68
128
"else the name of *func*\\s type."
69
129
msgstr ""
70
130
"*func* が関数、クラス、インスタンスオブジェクトであればその名前を、そうでなけ"
71
131
"れば *func* の型を返します。"
72
132
73
- #: ../../c-api/reflection.rst:42
133
+ #: ../../c-api/reflection.rst:102
74
134
msgid ""
75
135
"Return a description string, depending on the type of *func*. Return values "
76
136
"include \"()\" for functions and methods, \" constructor\", \" instance\", "
0 commit comments