robertwb / issues-import-test

0 stars 0 forks source link

Allow cdef class inheritance from builtin exception types #95

Open robertwb opened 7 years ago

robertwb commented 7 years ago

Reported by scoder on 1 Sep 2015 17:03 UTC 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