Skip to content

Commit 6e6984a

Browse files
sync with cpython 085fd75c
1 parent 8265d33 commit 6e6984a

3 files changed

Lines changed: 400 additions & 404 deletions

File tree

c-api/frame.po

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3.14\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2026-07-19 00:28+0000\n"
8+
"POT-Creation-Date: 2026-08-07 01:12+0000\n"
99
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1111
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -305,32 +305,10 @@ msgstr ""
305305

306306
#: ../../c-api/frame.rst:272
307307
msgid ""
308-
"However, Python's C API lacks a function to read the executable kind from a "
309-
"frame. Instead, use this recipe:"
308+
"Note that reading the executable kind from a frame is currently only "
309+
"possible with undocumented internal APIs."
310310
msgstr ""
311311

312-
#: ../../c-api/frame.rst:275
313-
msgid ""
314-
"int\n"
315-
"get_executable_kind(PyFrameObject *frame)\n"
316-
"{\n"
317-
" _PyInterpreterFrame *f = frame->f_frame;\n"
318-
" PyObject *exec = PyStackRef_AsPyObjectBorrow(f->f_executable);\n"
319-
"\n"
320-
" if (PyCode_Check(exec)) {\n"
321-
" return PyUnstable_EXECUTABLE_KIND_PY_FUNCTION;\n"
322-
" }\n"
323-
" if (PyMethod_Check(exec)) {\n"
324-
" return PyUnstable_EXECUTABLE_KIND_BUILTIN_FUNCTION;\n"
325-
" }\n"
326-
" if (Py_IS_TYPE(exec, &PyMethodDescr_Type)) {\n"
327-
" return PyUnstable_EXECUTABLE_KIND_METHOD_DESCRIPTOR;\n"
328-
" }\n"
329-
"\n"
330-
" return PyUnstable_EXECUTABLE_KIND_SKIP;\n"
331-
"}"
332-
msgstr ""
333-
334-
#: ../../c-api/frame.rst:301
312+
#: ../../c-api/frame.rst:280
335313
msgid "The number of entries in :c:data:`PyUnstable_ExecutableKinds`."
336314
msgstr ""

0 commit comments

Comments
 (0)