Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python310/include/python3.10/internal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python310/include/python3.10/internal/pycore_traceback.h
#ifndef Py_INTERNAL_TRACEBACK_H
#define Py_INTERNAL_TRACEBACK_H
#ifdef __cplusplus
extern "C" {
#endif

#ifndef Py_BUILD_CORE
#  error "this header requires Py_BUILD_CORE define"
#endif

/* Forward declaration */
struct _is;

/* Write the Python traceback into the file 'fd'. For example:

       Traceback (most recent call first):
         File "xxx", line xxx in <xxx>
         File "xxx", line xxx in <xxx>
         ...
         File "xxx", line xxx in <xxx>

   This function is written for debug purpose only, to dump the traceback in
   the worst case: after a segmentation fault, at fatal error, etc. That's why,
   it is very limited. Strings are truncated to 100 characters and encoded to
   ASCII with backslashreplace. It doesn't write the source code, only the
   function name, filename and line number of each frame. Write only the first
   100 frames: if the traceback is truncated, write the line " ...".

   This function is signal safe. */

PyAPI_FUNC(void) _Py_DumpTraceback(
    int fd,
    PyThreadState *tstate);

/* Write the traceback of all threads into the file 'fd'. current_thread can be
   NULL.

   Return NULL on success, or an error message on error.

   This function is written for debug purpose only. It calls
   _Py_DumpTraceback() for each thread, and so has the same limitations. It
   only write the traceback of the first 100 threads: write "..." if there are
   more threads.

   If current_tstate is NULL, the function tries to get the Python thread state
   of the current thread. It is not an error if the function is unable to get
   the current Python thread state.

   If interp is NULL, the function tries to get the interpreter state from
   the current Python thread state, or from
   _PyGILState_GetInterpreterStateUnsafe() in last resort.

   It is better to pass NULL to interp and current_tstate, the function tries
   different options to retrieve this information.

   This function is signal safe. */

PyAPI_FUNC(const char*) _Py_DumpTracebackThreads(
    int fd,
    struct _is *interp,
    PyThreadState *current_tstate);

/* Write a Unicode object into the file descriptor fd. Encode the string to
   ASCII using the backslashreplace error handler.

   Do nothing if text is not a Unicode object. The function accepts Unicode
   string which is not ready (PyUnicode_WCHAR_KIND).

   This function is signal safe. */
PyAPI_FUNC(void) _Py_DumpASCII(int fd, PyObject *text);

/* Format an integer as decimal into the file descriptor fd.

   This function is signal safe. */
PyAPI_FUNC(void) _Py_DumpDecimal(
    int fd,
    size_t value);

/* Format an integer as hexadecimal with width digits into fd file descriptor.
   The function is signal safe. */
PyAPI_FUNC(void) _Py_DumpHexadecimal(
    int fd,
    uintptr_t value,
    Py_ssize_t width);

PyAPI_FUNC(PyObject*) _PyTraceBack_FromFrame(
    PyObject *tb_next,
    PyFrameObject *frame);

#ifdef __cplusplus
}
#endif
#endif /* !Py_INTERNAL_TRACEBACK_H */
Name
Size
Permissions
Options
pycore_abstract.h
0.468 KB
-rw-r--r--
pycore_accu.h
1.1 KB
-rw-r--r--
pycore_asdl.h
2.901 KB
-rw-r--r--
pycore_ast.h
28.152 KB
-rw-r--r--
pycore_ast_state.h
6.306 KB
-rw-r--r--
pycore_atomic.h
16.581 KB
-rw-r--r--
pycore_atomic_funcs.h
2.381 KB
-rw-r--r--
pycore_bitutils.h
5.147 KB
-rw-r--r--
pycore_blocks_output_buffer.h
8.484 KB
-rw-r--r--
pycore_bytes_methods.h
3.305 KB
-rw-r--r--
pycore_call.h
0.85 KB
-rw-r--r--
pycore_ceval.h
3.402 KB
-rw-r--r--
pycore_code.h
0.68 KB
-rw-r--r--
pycore_compile.h
1.021 KB
-rw-r--r--
pycore_condvar.h
2.743 KB
-rw-r--r--
pycore_context.h
0.803 KB
-rw-r--r--
pycore_dtoa.h
0.631 KB
-rw-r--r--
pycore_fileutils.h
1.664 KB
-rw-r--r--
pycore_format.h
0.469 KB
-rw-r--r--
pycore_gc.h
6.698 KB
-rw-r--r--
pycore_getopt.h
0.479 KB
-rw-r--r--
pycore_gil.h
1.528 KB
-rw-r--r--
pycore_hamt.h
3.61 KB
-rw-r--r--
pycore_hashtable.h
4.099 KB
-rw-r--r--
pycore_import.h
0.338 KB
-rw-r--r--
pycore_initconfig.h
5.493 KB
-rw-r--r--
pycore_interp.h
9.071 KB
-rw-r--r--
pycore_list.h
0.342 KB
-rw-r--r--
pycore_long.h
2.528 KB
-rw-r--r--
pycore_moduleobject.h
1.022 KB
-rw-r--r--
pycore_object.h
5.849 KB
-rw-r--r--
pycore_parser.h
0.611 KB
-rw-r--r--
pycore_pathconfig.h
1.935 KB
-rw-r--r--
pycore_pyarena.h
2.669 KB
-rw-r--r--
pycore_pyerrors.h
2.26 KB
-rw-r--r--
pycore_pyhash.h
0.201 KB
-rw-r--r--
pycore_pylifecycle.h
4.824 KB
-rw-r--r--
pycore_pymem.h
3.136 KB
-rw-r--r--
pycore_pystate.h
3.846 KB
-rw-r--r--
pycore_runtime.h
4.787 KB
-rw-r--r--
pycore_structseq.h
0.377 KB
-rw-r--r--
pycore_symtable.h
5.447 KB
-rw-r--r--
pycore_sysmodule.h
0.535 KB
-rw-r--r--
pycore_traceback.h
2.9 KB
-rw-r--r--
pycore_tuple.h
0.415 KB
-rw-r--r--
pycore_ucnhash.h
0.877 KB
-rw-r--r--
pycore_unionobject.h
0.614 KB
-rw-r--r--
pycore_warnings.h
0.618 KB
-rw-r--r--