robertwb / issues-import-test

0 stars 0 forks source link

Allow cdef class inheritance from builtin exception types #1014

Open robertwb opened 9 years ago

robertwb commented 9 years ago

In all supported CPython versions (Py2.6+), exceptions are implemented as builtin types. It would be nice to allow users to inherit from them in cdef classes, i.e. to directly support

cdef class MyException(Exception):
    cdef int error_info

Migrated from http://trac.cython.org/ticket/862