From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/python~3.12/c-api%2Freflection.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 devdocs/python~3.12/c-api%2Freflection.html (limited to 'devdocs/python~3.12/c-api%2Freflection.html') diff --git a/devdocs/python~3.12/c-api%2Freflection.html b/devdocs/python~3.12/c-api%2Freflection.html new file mode 100644 index 00000000..4145a9d9 --- /dev/null +++ b/devdocs/python~3.12/c-api%2Freflection.html @@ -0,0 +1,24 @@ +

Reflection

+PyObject *PyEval_GetBuiltins(void)
+Return value: Borrowed reference. Part of the Stable ABI.

Return a dictionary of the builtins in the current execution frame, or the interpreter of the thread state if no frame is currently executing.

+
+PyObject *PyEval_GetLocals(void)
+Return value: Borrowed reference. Part of the Stable ABI.

Return a dictionary of the local variables in the current execution frame, or NULL if no frame is currently executing.

+
+PyObject *PyEval_GetGlobals(void)
+Return value: Borrowed reference. Part of the Stable ABI.

Return a dictionary of the global variables in the current execution frame, or NULL if no frame is currently executing.

+
+PyFrameObject *PyEval_GetFrame(void)
+Return value: Borrowed reference. Part of the Stable ABI.

Return the current thread state’s frame, which is NULL if no frame is currently executing.

See also PyThreadState_GetFrame().

+
+const char *PyEval_GetFuncName(PyObject *func)
+ Part of the Stable ABI.

Return the name of func if it is a function, class or instance object, else the name of funcs type.

+
+const char *PyEval_GetFuncDesc(PyObject *func)
+ Part of the Stable ABI.

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 PyEval_GetFuncName(), the result will be a description of func.

+
+

+ © 2001–2023 Python Software Foundation
Licensed under the PSF License.
+ https://docs.python.org/3.12/c-api/reflection.html +

+
-- cgit v1.2.3