Message263544
Ah yes. Some months (years?) ago, i started to add assertions to fail if
some functions are called with an exception set.
Checking if an exception is set at runtime adds a low overhead. Maybe it's
better to fail with a fatal error (like an assertion error) in debug mode
(and do nothing in release mode).
But I'm not sure that developers of C extensions are all able to get a
Python compiled in debug mode :-/ That's also why I added a check a
runtime: raise a SystemError if a function with an exception set. I also
added PYTHONMALLOC=debug to make some debug checks easily available on
release builds.
The bug also reminds me my PEP 490 to chain exceptions. It would be
yet another option...
So well, I don't know what is the best option. |
|
Date |
User |
Action |
Args |
2016-04-16 09:27:24 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka |
2016-04-16 09:27:24 | vstinner | link | issue26776 messages |
2016-04-16 09:27:23 | vstinner | create | |
|