Kaydet (Commit) 2d2c3444 authored tarafından Guido van Rossum's avatar Guido van Rossum

New API PyErr_NewException(name, base, dict) to create simple new exceptions.

üst 65349a39
...@@ -90,6 +90,10 @@ extern PyObject *PyErr_Format Py_PROTO((PyObject *, const char *, ...)); ...@@ -90,6 +90,10 @@ extern PyObject *PyErr_Format Py_PROTO((PyObject *, const char *, ...));
extern void PyErr_BadInternalCall Py_PROTO((void)); extern void PyErr_BadInternalCall Py_PROTO((void));
/* Function to create a new exception */
PyObject *PyErr_NewException Py_PROTO((char *name, PyObject *base,
PyObject *dict));
/* In sigcheck.c or signalmodule.c */ /* In sigcheck.c or signalmodule.c */
extern int PyErr_CheckSignals Py_PROTO((void)); extern int PyErr_CheckSignals Py_PROTO((void));
extern void PyErr_SetInterrupt Py_PROTO((void)); extern void PyErr_SetInterrupt Py_PROTO((void));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment