|
5 | 5 | msgstr "" |
6 | 6 | "Project-Id-Version: Python 3.14\n" |
7 | 7 | "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" |
9 | 9 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
10 | 10 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
11 | 11 | "Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" |
@@ -305,32 +305,10 @@ msgstr "" |
305 | 305 |
|
306 | 306 | #: ../../c-api/frame.rst:272 |
307 | 307 | 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." |
310 | 310 | msgstr "" |
311 | 311 |
|
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 |
335 | 313 | msgid "The number of entries in :c:data:`PyUnstable_ExecutableKinds`." |
336 | 314 | msgstr "" |
0 commit comments