3 ms·
The article dismisses setting an exception in the same line it's mentioned but it seems to me like a good option. As long as it's a python function then any in
by Dylan16807 15y ago
The article dismisses setting an exception in the same line it's mentioned but it seems to me like a good option. As long as it's a python function then any incidental c calls will quickly return and let it abort, right? The difficulty of stopping a c function is a whole different ballgame.
- eliben 15y agoThe problem is providing a generic solution that will work for all kinds of functions. Much Python code uses C calls under the hood, so this isn't easy to do.