Back to index

python3.2  3.2.2
Classes | Defines | Functions | Variables
pyerrors.h File Reference
#include <stdarg.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PyBaseExceptionObject
struct  PySyntaxErrorObject
struct  PyUnicodeErrorObject
struct  PySystemExitObject
struct  PyEnvironmentErrorObject

Defines

#define PyException_HEAD
#define _PyErr_OCCURRED()   (_PyThreadState_Current->curexc_type)
#define PyExceptionClass_Check(x)
#define PyExceptionInstance_Check(x)   PyType_FastSubclass((x)->ob_type, Py_TPFLAGS_BASE_EXC_SUBCLASS)
#define PyExceptionClass_Name(x)   ((char *)(((PyTypeObject*)(x))->tp_name))
#define PyExceptionInstance_Class(x)   ((PyObject*)((x)->ob_type))
#define PyErr_BadInternalCall()   _PyErr_BadInternalCall(__FILE__, __LINE__)

Functions

 PyAPI_FUNC (void) PyErr_SetNone(PyObject *)
 PyAPI_FUNC (PyObject *) PyErr_Occurred(void)
 PyAPI_FUNC (int) PyErr_GivenExceptionMatches(PyObject *
 PyAPI_DATA (PyObject *) PyExc_BaseException
int PySignal_SetWakeupFd (int fd)
size_t const char Py_GCC_ATTRIBUTE ((format(printf, 3, 4)))
size_t const char va_list va Py_GCC_ATTRIBUTE ((format(printf, 3, 0)))

Variables

PyObject const char * string
PyObject const char * filename
const char * format
int lineno
PyObjectbase
PyObject PyObjectdict
const char * doc
int int col_offset
const char * object
const char Py_ssize_t length
const char Py_ssize_t Py_ssize_t start
const char Py_ssize_t
Py_ssize_t Py_ssize_t 
end
const char Py_ssize_t
Py_ssize_t Py_ssize_t const
char * 
reason
Py_ssize_t Py_ssize_t Py_ssize_t Py_ssize_t
size_t size

Class Documentation

struct PyBaseExceptionObject

Definition at line 15 of file pyerrors.h.

struct PySyntaxErrorObject

Definition at line 19 of file pyerrors.h.

Collaboration diagram for PySyntaxErrorObject:
Class Members
PyObject * filename
PyObject * lineno
PyException_HEAD PyObject * msg
PyObject * offset
PyObject * print_file_and_line
PyObject * text
struct PyUnicodeErrorObject

Definition at line 29 of file pyerrors.h.

Collaboration diagram for PyUnicodeErrorObject:
Class Members
PyException_HEAD PyObject * encoding
Py_ssize_t end
PyObject * object
PyObject * reason
Py_ssize_t start
struct PySystemExitObject

Definition at line 38 of file pyerrors.h.

Collaboration diagram for PySystemExitObject:
Class Members
PyException_HEAD PyObject * code
struct PyEnvironmentErrorObject

Definition at line 43 of file pyerrors.h.

Collaboration diagram for PyEnvironmentErrorObject:
Class Members
PyObject * filename
PyException_HEAD PyObject * myerrno
PyObject * strerror

Define Documentation

#define _PyErr_OCCURRED ( )    (_PyThreadState_Current->curexc_type)

Definition at line 78 of file pyerrors.h.

void PyErr_BadInternalCall (   void)    _PyErr_BadInternalCall(__FILE__, __LINE__)

Definition at line 232 of file pyerrors.h.

Value:

Definition at line 11 of file pyerrors.h.

#define PyExceptionClass_Check (   x)
Value:
(PyType_Check((x)) &&                                               \
     PyType_FastSubclass((PyTypeObject*)(x), Py_TPFLAGS_BASE_EXC_SUBCLASS))

Definition at line 101 of file pyerrors.h.

#define PyExceptionClass_Name (   x)    ((char *)(((PyTypeObject*)(x))->tp_name))

Definition at line 108 of file pyerrors.h.

Definition at line 105 of file pyerrors.h.

#define PyExceptionInstance_Class (   x)    ((PyObject*)((x)->ob_type))

Definition at line 111 of file pyerrors.h.


Function Documentation

size_t const char Py_GCC_ATTRIBUTE ( (format(printf, 3, 4))  )
size_t const char va_list va Py_GCC_ATTRIBUTE ( (format(printf, 3, 0))  )
PyAPI_FUNC ( PyObject ) [read]

Definition at line 2431 of file pythonrun.c.

{
    return PyRun_FileExFlags(fp, p, s, g, l, c, NULL);
}
PyAPI_FUNC ( int  )

Definition at line 2410 of file pythonrun.c.

Definition at line 429 of file signalmodule.c.

{
    int old_fd = wakeup_fd;
    if (fd < 0)
        fd = -1;
    wakeup_fd = fd;
    return old_fd;
}

Variable Documentation

Definition at line 236 of file pyerrors.h.

Definition at line 256 of file pyerrors.h.

Definition at line 236 of file pyerrors.h.

const char* doc

Definition at line 238 of file pyerrors.h.

Definition at line 268 of file pyerrors.h.

Definition at line 188 of file pyerrors.h.

Definition at line 196 of file pyerrors.h.

Definition at line 268 of file pyerrors.h.

Definition at line 229 of file pyerrors.h.

Definition at line 268 of file pyerrors.h.

Definition at line 315 of file pyerrors.h.

const char * reason

Definition at line 268 of file pyerrors.h.

Definition at line 367 of file pyerrors.h.

Definition at line 268 of file pyerrors.h.

Definition at line 68 of file pyerrors.h.