@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.13\n "
1313"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 "
1515"PO-Revision-Date : 2021-06-28 00:50+0000\n "
1616"Last-Translator : tomo, 2021\n "
1717"Language-Team : Japanese (https://app.transifex.com/python-doc/teams/5390/ "
@@ -26,51 +26,111 @@ msgstr ""
2626msgid "Reflection"
2727msgstr "リフレクション"
2828
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
3034msgid ""
3135"Return a dictionary of the builtins in the current execution frame, or the "
3236"interpreter of the thread state if no frame is currently executing."
3337msgstr ""
3438"現在の実行フレーム内のビルトインの辞書か、もし実行中のフレームがなければス"
3539"レッド状態のインタプリタのビルトイン辞書を返します。"
3640
37- #: ../../c-api/reflection.rst:16
41+ #: ../../c-api/reflection.rst:22
3842msgid ""
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."
4147msgstr ""
42- "現在の実行フレーム内のローカル変数の辞書か、実行中のフレームがなければ "
43- "``NULL`` を返します。"
4448
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
4685msgid ""
4786"Return a dictionary of the global variables in the current execution frame, "
4887"or ``NULL`` if no frame is currently executing."
4988msgstr ""
5089"現在の実行フレーム内のグローバル変数の辞書か、実行中のフレームがなければ "
5190"``NULL`` を返します。"
5291
53- #: ../../c-api/reflection.rst:28
92+ #: ../../c-api/reflection.rst:58
5493msgid ""
5594"Return the current thread state's frame, which is ``NULL`` if no frame is "
5695"currently executing."
5796msgstr ""
5897"現在のスレッド状態のフレームを返します。現在実行中のフレームがなければ "
5998"``NULL`` を返します。"
6099
61- #: ../../c-api/reflection.rst:31
100+ #: ../../c-api/reflection.rst:61
62101msgid "See also :c:func:`PyThreadState_GetFrame`."
63102msgstr ""
64103
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
66126msgid ""
67127"Return the name of *func* if it is a function, class or instance object, "
68128"else the name of *func*\\ s type."
69129msgstr ""
70130"*func* が関数、クラス、インスタンスオブジェクトであればその名前を、そうでなけ"
71131"れば *func* の型を返します。"
72132
73- #: ../../c-api/reflection.rst:42
133+ #: ../../c-api/reflection.rst:102
74134msgid ""
75135"Return a description string, depending on the type of *func*. Return values "
76136"include \" ()\" for functions and methods, \" constructor\" , \" instance\" , "
0 commit comments